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;
}
.poll_option {
height: max-content;
overflow: auto;
overflow-wrap: anywhere;
}
/* pillmenu */
.pillmenu {
display: flex;

View file

@ -1465,14 +1465,14 @@
; option a
(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'])")
(icon (text "tally-1"))
(text "{{ poll[0].option_a }}"))
; option b
(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'])")
(icon (text "tally-2"))
(text "{{ poll[0].option_b }}"))
@ -1480,7 +1480,7 @@
; option c
(text "{% if poll[0].option_c -%}")
(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'])")
(icon (text "tally-3"))
(text "{{ poll[0].option_c }}"))
@ -1489,7 +1489,7 @@
; option d
(text "{% if poll[0].option_d -%}")
(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'])")
(icon (text "tally-4"))
(text "{{ poll[0].option_d }}"))