mirror of
https://github.com/wavetermdev/waveterm
synced 2026-04-21 14:37:16 +00:00
Large PR that extends WaveEnv mocking to fully cover the (complicated) TabBar implementation. Also includes a full preview of the tab bar in the preview server with lots of controls to simulate different scenarios. As a result of this mocking, also fixed a bunch of dependencies, and layout errors, random bugs, and visual UX bugs in the tab bar, making it more robust. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sawka <2722291+sawka@users.noreply.github.com> Co-authored-by: sawka <mike@commandline.dev>
60 lines
1.4 KiB
SCSS
60 lines
1.4 KiB
SCSS
// Copyright 2024, Command Line Inc.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
.tab-bar-wrapper {
|
|
padding-top: 3px;
|
|
position: relative;
|
|
user-select: none;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: end;
|
|
width: 100vw;
|
|
-webkit-app-region: drag;
|
|
height: max(33px, calc(33px * var(--zoomfactor-inv)));
|
|
backdrop-filter: blur(20px);
|
|
background: rgba(0, 0, 0, 0.35);
|
|
flex-shrink: 0;
|
|
|
|
button {
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
|
|
.tabs-wrapper {
|
|
transition: var(--tabs-wrapper-transition);
|
|
height: 26px;
|
|
}
|
|
|
|
.tab-bar {
|
|
position: relative; // Needed for absolute positioning of child tabs
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 27px;
|
|
-webkit-app-region: no-drag;
|
|
margin-bottom: 1px;
|
|
}
|
|
|
|
.pinned-tab-spacer {
|
|
display: block;
|
|
height: 100%;
|
|
margin: 2px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.add-tab {
|
|
padding: 0 10px;
|
|
height: 27px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
// 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;
|
|
}
|
|
}
|