File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 110
110
opacity : 1 ;
111
111
}
112
112
113
+ .fcitx-comment {
114
+ overflow-wrap : anywhere; /* Disallow long comment to introduce horizontal scrollbar. */
115
+ }
116
+
113
117
.fcitx-divider {
114
118
flex-grow : 1 ;
115
119
}
Original file line number Diff line number Diff line change @@ -126,6 +126,12 @@ export function recalculateScroll(scrollStart: boolean) {
126
126
rowItemCount . push ( itemCount )
127
127
itemCount = 1
128
128
currentY = y
129
+ const previousDivider = candidate . previousElementSibling !
130
+ if ( previousDivider . getBoundingClientRect ( ) . y === y ) {
131
+ // The element in previous row is too long so the divider goes to the next row.
132
+ // The fix should not affect how many candidates in a row.
133
+ previousDivider . setAttribute ( 'style' , 'flex-grow: 0' )
134
+ }
129
135
}
130
136
}
131
137
rowItemCount . push ( itemCount )
You can’t perform that action at this time.
0 commit comments