From e51739e1d4b7194dbef8ef7e1a4863559ebc3a62 Mon Sep 17 00:00:00 2001
From: windingwind <33902321+windingwind@users.noreply.github.com>
Date: Sun, 3 Mar 2024 17:33:14 +0800
Subject: [PATCH] fx115: fix layout on Windows
---
chrome/content/scaffold/scaffold.xhtml | 7 ++++---
chrome/content/zotero/zoteroPane.xhtml | 10 +++-------
scss/win/_titleBar.scss | 8 ++++++--
scss/win/components/_tabbox.scss | 7 ++++++-
4 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/chrome/content/scaffold/scaffold.xhtml b/chrome/content/scaffold/scaffold.xhtml
index 0259759f76..3c1948c39c 100644
--- a/chrome/content/scaffold/scaffold.xhtml
+++ b/chrome/content/scaffold/scaffold.xhtml
@@ -159,7 +159,8 @@
-
+
-
+
diff --git a/chrome/content/zotero/zoteroPane.xhtml b/chrome/content/zotero/zoteroPane.xhtml
index a88d864eea..93c6a1d316 100644
--- a/chrome/content/zotero/zoteroPane.xhtml
+++ b/chrome/content/zotero/zoteroPane.xhtml
@@ -195,7 +195,8 @@
-
+
-
diff --git a/scss/win/_titleBar.scss b/scss/win/_titleBar.scss
index 60ae5b28bf..943249cf68 100644
--- a/scss/win/_titleBar.scss
+++ b/scss/win/_titleBar.scss
@@ -2,13 +2,13 @@
// Need this to force show the menubar
display: initial;
// Allow right-click context menu on menubar
- pointer-events: none;
visibility: visible;
flex: 1;
}
#menubar-items {
pointer-events: all;
+ -moz-window-dragging: drag;
}
.titlebar-buttonbox {
@@ -19,9 +19,9 @@
#titlebar,
.menubar-container {
appearance: none;
+ flex-direction: row;
height :var(--tab-min-height);
-moz-box-pack: center;
- pointer-events: none;
border-bottom: var(--material-border);
background: var(--material-tabbar);
toolbar {
@@ -34,7 +34,11 @@
menu {
border-radius: 4px;
}
+ #main-menubar {
+ align-self: flex-start;
+ }
#main-menubar > menu {
+ height: 100%;
padding: 0px 4px 0px 4px;
}
#main-menubar > menu > menupopup {
diff --git a/scss/win/components/_tabbox.scss b/scss/win/components/_tabbox.scss
index 25a9a59605..4d82563a6f 100644
--- a/scss/win/components/_tabbox.scss
+++ b/scss/win/components/_tabbox.scss
@@ -7,7 +7,7 @@ tabbox {
background: transparent;
spacer:first-of-type {
- -moz-box-flex: 1;
+ flex: 1;
}
tab {
@@ -63,5 +63,10 @@ tabbox {
border-radius: 8px;
// 8 (original) + 14 (from tabs)
padding-top: 22px;
+
+ tabpanel {
+ min-width: 500px;
+ max-width: 100%;
+ }
}
}
\ No newline at end of file