File tree Expand file tree Collapse file tree
src/components/Poll/styling Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 flex-direction : column ;
3030 align-items : center ;
3131 gap : var (--spacing-xs );
32+ }
3233
33- .str-chat__button.str-chat__poll-action {
34- width : 100% ;
35- border : 1px solid var (--chat-border-on-chat );
36- padding : var (--button-padding-y-sm ) var (--button-padding-x-with-label-sm );
37- font : var (--str-chat__font-body -emphasis );
34+ .str-chat__button.str-chat__poll-action {
35+ width : 100% ;
36+ border : 1px solid var (--chat-border-on-chat );
37+ padding : var (--button-padding-y-sm ) var (--button-padding-x-with-label-sm );
38+ font : var (--str-chat__font-caption -emphasis );
3839
39- & .str-chat__poll-action--additional {
40- border : none ;
41- }
40+ & .str-chat__poll-action--additional {
41+ border : none ;
4242 }
4343 }
4444 }
Original file line number Diff line number Diff line change 1010 padding-bottom : var (--spacing-xl );
1111
1212 .str-chat__poll-option-list--full {
13- gap : var (--spacing-xxs );
13+ gap : var (--spacing-xs );
1414 scrollbar-width : none ;
15- padding : var (--spacing-sm ) var ( --spacing-xxs );
15+ padding : var (--spacing-xs );
1616 border-radius : var (--radius-lg );
1717 background-color : var (--background-core-surface-card );
1818
1919 .str-chat__poll-option {
2020 padding : var (--spacing-xs );
21- border-radius : var (--radius-lg );
21+ border-radius : var (--radius-md );
2222 }
2323 .str-chat__poll-option--votable {
2424 & :hover {
Original file line number Diff line number Diff line change 2828 height : var (--str-chat__poll-checkmark-size );
2929 width : var (--str-chat__poll-checkmark-size );
3030 border-radius : var (--radius-max );
31- border : 1px solid var (--chat-border-on-chat );
31+ border : 1px solid var (--chat-border-on-chat , var ( --chat-border-on-chat-incoming ) );
3232 }
3333
3434 .str-chat__checkmark--checked {
4343 .str-chat__poll-option-data {
4444 flex : 1 ;
4545 display : flex ;
46- align-items : start ;
46+ align-items : baseline ;
4747 gap : var (--spacing-xs );
4848 grid-column : 2 / 3 ;
4949 grid-row : 1 / 2 ;
5353 p {
5454 margin : 0 ;
5555 flex : 1 ;
56+ word-break : break-word ;
57+ hyphens : auto ;
5658 }
5759
5860 .str-chat__poll-option-votes {
7981 width : 100% ;
8082 background : linear-gradient (
8183 to right ,
82- var (--chat-poll-progress-fill ) var (--str-chat__amount-bar-fulfillment ),
83- var (--chat-poll-progress-track ) var (--str-chat__amount-bar-fulfillment )
84+ var (--chat-poll-progress-fill , var (--chat-poll-progress-fill-incoming ))
85+ var (--str-chat__amount-bar-fulfillment ),
86+ var (--chat-poll-progress-track , var (--chat-poll-progress-track-incoming ))
87+ var (--str-chat__amount-bar-fulfillment )
8488 );
8589 border-radius : var (--size-4 );
8690 }
8791 }
8892}
89-
90- .str-chat__message--me {
91- .str-chat__poll-option-list {
92- .str-chat__checkmark {
93- border : 1px solid var (--chat-border-on-chat-outgoing );
94- }
95- }
96- }
Original file line number Diff line number Diff line change 5656
5757 .str-chat__poll-option__option-text {
5858 flex : 1 ;
59+ word-break : break-word ;
60+ hyphens : auto ;
5961 }
6062 }
6163 }
119121 align-items : center ;
120122 font : var (--str-chat__font-caption-emphasis );
121123
122- svg {
124+ .str-chat__icon {
125+ height : var (--icon-size-md );
126+ width : var (--icon-size-md );
123127 }
124128 }
125129}
You can’t perform that action at this time.
0 commit comments