no extra arrows from scrollable components on win (#3634)

Somehow `scrollbar-width: thin` removes unnecessary arrows from
editable-text textarea and itemPane on windows

Addresses: #3633
This commit is contained in:
abaevbog 2024-02-02 03:05:59 -05:00 committed by GitHub
parent 41ccbc90a0
commit 9823b1199a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -36,6 +36,14 @@ tree {
padding-left: 5px;
}
/*
Default scrollbar displays up/down arrows even
when there is no overflow and the scrollbar is hidden
*/
.zotero-view-item {
scrollbar-width: thin;
}
.zotero-view-item > tabpanel > vbox {
padding-left: 5px;
}

View file

@ -64,6 +64,8 @@ editable-text {
overflow-wrap: anywhere;
white-space: pre-wrap;
max-height: calc(2ex * var(--max-visible-lines));
// Somehow this hides scroll arrows on windows when the content is short or empty
scrollbar-width: thin;
}
.input {