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:
parent
41ccbc90a0
commit
9823b1199a
2 changed files with 10 additions and 0 deletions
|
@ -36,6 +36,14 @@ tree {
|
||||||
padding-left: 5px;
|
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 {
|
.zotero-view-item > tabpanel > vbox {
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,6 +64,8 @@ editable-text {
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
max-height: calc(2ex * var(--max-visible-lines));
|
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 {
|
.input {
|
||||||
|
|
Loading…
Reference in a new issue