demetz commited on
Commit
423ce2a
·
verified ·
1 Parent(s): 08f3388

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -58,30 +58,30 @@ def respond(message, history, name, char_class, char_alignment):
58
  # === GUI ===
59
 
60
  chat_css="""
61
- #alignment_radio input[type="radio"] {
62
- display: none;
63
- }
64
-
65
  #alignment_radio .gr-radio {
66
  display: grid;
67
  grid-template-columns: repeat(3, 1fr);
68
  gap: 0px;
69
- width: fit-content;
 
 
 
 
70
  }
71
 
72
  #alignment_radio label {
73
  display: flex;
74
  align-items: center;
75
  justify-content: center;
76
- aspect-ratio: 1 / 1; /* Makes the button square */
77
- background-color: #eee;
 
 
78
  margin: 0;
79
  padding: 0;
80
- border: 1px solid #ccc;
81
  cursor: pointer;
82
- font-size: 0.85rem;
83
- text-align: center;
84
  user-select: none;
 
85
  }
86
 
87
  #alignment_radio input[type="radio"]:checked + label {
 
58
  # === GUI ===
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
+
68
+ #alignment_radio input[type="radio"] {
69
+ display: none;
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 {