mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-22 21:42:49 +01:00
4070abadde
Only create new tab in `CheckAndFixWindow` if no tabs or pinned tabs exist Update `resolvers.resolveTabNum` to account for pinned tabs Remove obsolete and unused `wstore.DeleteTab` Only show accelerators for first 9 workspaces in workspace app menu to be consistent with other keybindings Fix tabbar spacing to remove min size for drag right spacer, account for workspace switcher button size Fix updatebanner size calculations
132 lines
2.5 KiB
SCSS
132 lines
2.5 KiB
SCSS
// Copyright 2024, Command Line Inc.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
.tab-bar-wrapper {
|
|
--default-indent: 10px;
|
|
--darwin-not-fullscreen-indent: 74px;
|
|
}
|
|
|
|
.darwin:not(.fullscreen) .tab-bar-wrapper {
|
|
.window-drag.left {
|
|
width: var(--darwin-not-fullscreen-indent);
|
|
}
|
|
}
|
|
|
|
.config-error-message {
|
|
max-width: 500px;
|
|
|
|
h3 {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.tab-bar-wrapper {
|
|
position: relative;
|
|
user-select: none;
|
|
display: flex;
|
|
flex-direction: row;
|
|
width: 100vw;
|
|
-webkit-app-region: drag;
|
|
|
|
* {
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
|
|
.tabs-wrapper {
|
|
transition: var(--tabs-wrapper-transition);
|
|
height: 26px;
|
|
}
|
|
|
|
.tab-bar {
|
|
margin-top: 6px;
|
|
position: relative; // Needed for absolute positioning of child tabs
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 27px;
|
|
}
|
|
|
|
.pinned-tab-spacer {
|
|
display: block;
|
|
height: 100%;
|
|
margin: 2px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.dev-label,
|
|
.app-menu-button {
|
|
font-size: 26px;
|
|
user-select: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 6px 6px 0 0;
|
|
}
|
|
|
|
.app-menu-button {
|
|
cursor: pointer;
|
|
color: var(--secondary-text-color);
|
|
|
|
&:hover {
|
|
color: var(--main-text-color);
|
|
}
|
|
}
|
|
|
|
.dev-label {
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.config-error-button {
|
|
height: 80%;
|
|
margin: auto 4px;
|
|
color: black;
|
|
flex: 0 0 fit-content;
|
|
}
|
|
|
|
.add-tab-btn {
|
|
width: 22px;
|
|
height: 100%;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
user-select: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0.5;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
i {
|
|
overflow: hidden;
|
|
margin-top: 5px;
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
|
|
.window-drag {
|
|
height: 100%;
|
|
width: var(--default-indent);
|
|
flex-shrink: 0;
|
|
|
|
&.right {
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
|
|
// Customize scrollbar styles
|
|
.os-theme-dark,
|
|
.os-theme-light {
|
|
box-sizing: border-box;
|
|
--os-size: 2px;
|
|
--os-padding-perpendicular: 0px;
|
|
--os-padding-axis: 0px;
|
|
--os-track-border-radius: 2px;
|
|
--os-handle-interactive-area-offset: 0px;
|
|
--os-handle-border-radius: 2px;
|
|
}
|
|
}
|