fix: poll option text overflow

This commit is contained in:
trisua 2025-06-05 21:28:01 -04:00
parent 675b3e4ee6
commit afe2955a25
2 changed files with 10 additions and 4 deletions

View file

@ -735,6 +735,12 @@ select:focus {
height: 25px; height: 25px;
} }
.poll_option {
height: max-content;
overflow: auto;
overflow-wrap: anywhere;
}
/* pillmenu */ /* pillmenu */
.pillmenu { .pillmenu {
display: flex; display: flex;

View file

@ -1465,14 +1465,14 @@
; option a ; option a
(button (button
("class" "hover_left_bar tertiary justify-start w-full") ("class" "hover_left_bar tertiary justify-start w-full poll_option")
("onclick" "trigger('me::vote', ['{{ post.id }}', 'A'])") ("onclick" "trigger('me::vote', ['{{ post.id }}', 'A'])")
(icon (text "tally-1")) (icon (text "tally-1"))
(text "{{ poll[0].option_a }}")) (text "{{ poll[0].option_a }}"))
; option b ; option b
(button (button
("class" "hover_left_bar tertiary justify-start w-full") ("class" "hover_left_bar tertiary justify-start w-full poll_option")
("onclick" "trigger('me::vote', ['{{ post.id }}', 'B'])") ("onclick" "trigger('me::vote', ['{{ post.id }}', 'B'])")
(icon (text "tally-2")) (icon (text "tally-2"))
(text "{{ poll[0].option_b }}")) (text "{{ poll[0].option_b }}"))
@ -1480,7 +1480,7 @@
; option c ; option c
(text "{% if poll[0].option_c -%}") (text "{% if poll[0].option_c -%}")
(button (button
("class" "hover_left_bar tertiary justify-start w-full") ("class" "hover_left_bar tertiary justify-start w-full poll_option")
("onclick" "trigger('me::vote', ['{{ post.id }}', 'C'])") ("onclick" "trigger('me::vote', ['{{ post.id }}', 'C'])")
(icon (text "tally-3")) (icon (text "tally-3"))
(text "{{ poll[0].option_c }}")) (text "{{ poll[0].option_c }}"))
@ -1489,7 +1489,7 @@
; option d ; option d
(text "{% if poll[0].option_d -%}") (text "{% if poll[0].option_d -%}")
(button (button
("class" "hover_left_bar tertiary justify-start w-full") ("class" "hover_left_bar tertiary justify-start w-full poll_option")
("onclick" "trigger('me::vote', ['{{ post.id }}', 'D'])") ("onclick" "trigger('me::vote', ['{{ post.id }}', 'D'])")
(icon (text "tally-4")) (icon (text "tally-4"))
(text "{{ poll[0].option_d }}")) (text "{{ poll[0].option_d }}"))