demetz commited on
Commit
703410a
·
verified ·
1 Parent(s): 423ce2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -59,9 +59,9 @@ def respond(message, history, name, char_class, char_alignment):
59
 
60
  chat_css="""
61
  #alignment_radio .gr-radio {
62
- display: grid;
63
  grid-template-columns: repeat(3, 1fr);
64
- gap: 0px;
65
  width: 300px;
66
  }
67
 
@@ -70,24 +70,25 @@ chat_css="""
70
  }
71
 
72
  #alignment_radio label {
73
- display: flex;
74
  align-items: center;
75
  justify-content: center;
76
  aspect-ratio: 1 / 1;
77
- background-color: #ddd;
78
- border: 1px solid #aaa;
79
  font-size: 0.75rem;
80
- margin: 0;
81
- padding: 0;
82
  cursor: pointer;
83
  user-select: none;
84
  transition: background-color 0.2s, color 0.2s;
85
  }
86
 
 
87
  #alignment_radio input[type="radio"]:checked + label {
88
- background-color: red;
89
- color: white;
90
- border-color: darkred;
91
  }
92
  """
93
 
 
59
 
60
  chat_css="""
61
  #alignment_radio .gr-radio {
62
+ display: grid !important;
63
  grid-template-columns: repeat(3, 1fr);
64
+ gap: 0 !important;
65
  width: 300px;
66
  }
67
 
 
70
  }
71
 
72
  #alignment_radio label {
73
+ display: flex !important;
74
  align-items: center;
75
  justify-content: center;
76
  aspect-ratio: 1 / 1;
77
+ background-color: #eee;
78
+ border: 1px solid #ccc;
79
  font-size: 0.75rem;
80
+ margin: 0 !important;
81
+ padding: 0 !important;
82
  cursor: pointer;
83
  user-select: none;
84
  transition: background-color 0.2s, color 0.2s;
85
  }
86
 
87
+ /* This is the magic: target the label of the checked input */
88
  #alignment_radio input[type="radio"]:checked + label {
89
+ background-color: red !important;
90
+ color: white !important;
91
+ border-color: darkred !important;
92
  }
93
  """
94