Couple of small fixes to the tag selector

* Add bottom padding
* Increase padding for macOS 0-width scrollbars
This commit is contained in:
Tom Najdek 2024-01-18 16:55:05 +01:00 committed by Dan Stillman
parent 71d6e219bd
commit 03be35426c
2 changed files with 5 additions and 1 deletions

View file

@ -97,7 +97,7 @@ class TagList extends React.PureComponent {
updatePositions() {
const tagPaddingTop = this.props.uiDensity === 'comfortable' ? 2 : 1;
const tagPaddingBottom = tagPaddingTop;
this.scrollbarWidth = Zotero.Utilities.Internal.getScrollbarWidth();
this.scrollbarWidth = Math.max(Zotero.Utilities.Internal.getScrollbarWidth(), 6);
var tagMaxWidth = this.props.width - minHorizontalPadding - this.scrollbarWidth;
var rowHeight = tagPaddingTop + this.props.lineHeight + tagPaddingBottom + tagSpaceBetweenY;

View file

@ -47,6 +47,10 @@
margin: 0;
padding: 0;
scrollbar-color: var(--color-scrollbar) var(--color-scrollbar-background);
.ReactVirtualized__Collection__innerScrollContainer {
padding-bottom: 8px;
}
}
.tag-selector-filter-pane {