chore: Fixed pinned tabs

This commit is contained in:
Mauro Balades
2024-07-21 20:34:47 +02:00
parent cc36e8a6e0
commit cf116b5ad3
3 changed files with 11 additions and 14 deletions

View File

@@ -76,9 +76,9 @@
</vbox> </vbox>
</panelview> </panelview>
<panel type="arrow" orient="vertical" id="PanelUI-zen-workspaces" position="bottomright topright" mainview="true" side="left"> <panel flip="slide" type="arrow" orient="vertical" id="PanelUI-zen-workspaces" position="bottomright topright" mainview="true" side="left">
<panelmultiview id="PanelUI-zen-workspaces-multiview" mainViewId="PanelUI-zen-workspaces-view"> <panelmultiview id="PanelUI-zen-workspaces-multiview" mainViewId="PanelUI-zen-workspaces-view">
<panelview id="PanelUI-zen-workspaces-view" class="PanelUI-subView" role="document" mainview-with-header="true" has-custom-header="true"> <panelview lockpanelvertical="true" id="PanelUI-zen-workspaces-view" class="PanelUI-subView" role="document" mainview-with-header="true" has-custom-header="true">
<vbox> <vbox>
<hbox> <hbox>
<h3 data-l10n-id="zen-panel-ui-current-window-text"></h3> <h3 data-l10n-id="zen-panel-ui-current-window-text"></h3>
@@ -98,7 +98,7 @@
</html:div> </html:div>
</vbox> </vbox>
</panelview> </panelview>
<panelview id="PanelUI-zen-workspaces-create" class="PanelUI-subView" role="document" mainview-with-header="true" has-custom-header="true"> <panelview lockpanelvertical="true" id="PanelUI-zen-workspaces-create" class="PanelUI-subView" role="document" mainview-with-header="true" has-custom-header="true">
<vbox> <vbox>
<h1 data-l10n-id="zen-panel-ui-workspaces-create-text"></h1> <h1 data-l10n-id="zen-panel-ui-workspaces-create-text"></h1>
<html:input autofocus="true" id="PanelUI-zen-workspaces-create-input" type="text" placeholder="Enter workspace name" oninput="ZenWorkspaces.onWorkspaceNameChange(this);" /> <html:input autofocus="true" id="PanelUI-zen-workspaces-create-input" type="text" placeholder="Enter workspace name" oninput="ZenWorkspaces.onWorkspaceNameChange(this);" />
@@ -113,6 +113,8 @@
</panelmultiview> </panelmultiview>
</panel> </panel>
<menupopup id="zenWorkspaceActionsMenu" <menupopup id="zenWorkspaceActionsMenu"
onpopupshowing="ZenWorkspaces.updateContextMenu(event);" onpopupshowing="ZenWorkspaces.updateContextMenu(event);"
onpopuphidden="ZenWorkspaces.onContextMenuClose();"> onpopuphidden="ZenWorkspaces.onContextMenuClose();">

View File

@@ -361,14 +361,14 @@ toolbarbutton#scrollbutton-up {
} }
.tabbrowser-tab:nth-last-child(1 of [pinned]) { .tabbrowser-tab:nth-last-child(1 of [pinned]) {
margin-bottom: 5px !important; margin-bottom: 15px !important;
position: relative; position: relative;
overflow: visible; overflow: visible;
&::after { & .tab-stack::after {
content: ''; content: '';
position: absolute; position: absolute;
bottom: -5px; bottom: -11px;
left: 0; left: 0;
width: 100%; width: 100%;
height: 1.5px; height: 1.5px;

View File

@@ -251,7 +251,7 @@
#PanelUI-zen-workspaces { #PanelUI-zen-workspaces {
--panel-width: 320px; --panel-width: 320px;
width: var(--panel-width); --panel-padding: 0;
min-height: 200px; min-height: 200px;
} }
@@ -261,8 +261,8 @@
#PanelUI-zen-workspaces panelmultiview panelview { #PanelUI-zen-workspaces panelmultiview panelview {
position: relative; position: relative;
width: 100%; padding: 15px;
overflow: hidden !important; width: var(--panel-width);
} }
#PanelUI-zen-workspaces-create-input { #PanelUI-zen-workspaces-create-input {
@@ -274,11 +274,6 @@
flex-direction: column; flex-direction: column;
} }
#PanelUI-zen-workspaces .panel-viewcontainer,
#PanelUI-zen-workspaces .panel-viewstack {
width: 100%;
}
#PanelUI-zen-workspaces-current-info toolbarbutton:last-child { #PanelUI-zen-workspaces-current-info toolbarbutton:last-child {
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }