Fix Linux UI bugs

This commit is contained in:
windingwind 2023-12-22 23:10:26 +08:00 committed by Dan Stillman
parent fb26921e11
commit f9a2f2f3e0
8 changed files with 3 additions and 38 deletions

View file

@ -74,9 +74,6 @@ class Button extends PureComponent {
}
get menuMarker() {
if (!Zotero.isNode && Zotero.isLinux) {
return this.props.isMenu && <span className="menu-marker"/>
}
return this.props.isMenu && <CSSIcon name="chevron-6" className="menu-marker icon-8"/>
}

View file

@ -1142,11 +1142,7 @@ class VirtualizedTable extends React.Component {
}
let sortIndicator = "";
if (!column.iconLabel && column.sortDirection) {
if (!Zotero.isNode && Zotero.isLinux) {
sortIndicator = <span className={"sort-indicator " + (column.sortDirection === 1 ? "ascending" : "descending")}/>;
} else {
sortIndicator = <CSSIcon name="sort-indicator" className={"icon-8 sort-indicator " + (column.sortDirection === 1 ? "ascending" : "descending")} />;
}
sortIndicator = <CSSIcon name="sort-indicator" className={"icon-8 sort-indicator " + (column.sortDirection === 1 ? "ascending" : "descending")} />;
}
const className = cx("cell", column.className, { 'first-column': index === 0, dragging: this.state.draggingColumn == index },
{ "cell-icon": !!column.iconLabel });

View file

@ -10,7 +10,7 @@
line-height: inherit;
color: inherit;
text-align: center;
-moz-appearance: toolbarbutton;
-moz-appearance: none;
&[disabled],
&.disabled {
@ -25,7 +25,7 @@
}
}
span.menu-marker {
-moz-appearance: toolbarbutton-dropdown;
-moz-appearance: none;
display: inline-block;
margin-left: 4px;
}

View file

@ -1,4 +0,0 @@
#aboutcontent
{
color: #3e3e3e;
}

View file

@ -1,10 +0,0 @@
tags-box, related-box {
color: Text;
background: Background;
}
#related-popup, #tags-popup {
--panel-color: Text;
--panel-background: transparent;
--panel-border-color: InactiveBorder
}

View file

@ -1,11 +0,0 @@
//
// Button
// --------------------------------------------------
.btn {
-moz-appearance: none;
span.menu-marker {
-moz-appearance: none;
}
}

View file

@ -4,7 +4,6 @@
// MacOS specific
// --------------------------------------------------
@import "mac/button";
@import "mac/createParent";
@import "mac/editable";
@import "mac/tabBar";

View file

@ -4,7 +4,6 @@
// Linux specific
// --------------------------------------------------
@import "linux/about";
@import "linux/createParent";
@import "linux/editable";
@import "linux/errorReport";
@ -16,4 +15,3 @@
// Elements
@import "linux/elements/itemBox";
@import "linux/elements/noteEditor";