Skip to content

Commit 3bf3501

Browse files
authored
fix firefox scrollbar too wide (#41)
1 parent f9b544b commit 3bf3501

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

page/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ globalThis.fcitx = {
4040
break
4141
}
4242
}
43+
if (navigator.userAgent.includes('Firefox')) {
44+
// Firefox doesn't support assigning numeric scrollbar width. Event the thinnest scrollbar
45+
// pushes the 6th candidate to next row. Set it none to mitigate.
46+
(document.querySelector('.fcitx-hoverables') as HTMLElement).style.scrollbarWidth = 'none'
47+
}
4348
hidePanel()
4449
},
4550
placePanel,

0 commit comments

Comments
 (0)