mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-04 18:59:08 +01:00
feature/auto-hide-tab-bar review changes
This commit is contained in:
parent
bce3106141
commit
1ef2d685c6
@ -4,9 +4,11 @@
|
||||
@use "../mixins.scss";
|
||||
@use "../tab/tabbar.scss" as tabbar;
|
||||
|
||||
.darwin:not(.fullscreen) .block.block-frame-default .block-frame-default-header {
|
||||
.window-drag.left {
|
||||
width: tabbar.$darwin-not-fullscreen-indent;
|
||||
.darwin:not(.fullscreen) {
|
||||
.block.block-frame-default .block-frame-default-header {
|
||||
.window-drag.left {
|
||||
width: tabbar.$darwin-not-fullscreen-indent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -187,7 +187,6 @@ const BlockFrame_Header = ({
|
||||
const prevMagifiedState = React.useRef(magnified);
|
||||
const manageConnection = util.useAtomValueSafe(viewModel?.manageConnection);
|
||||
const dragHandleRef = preview ? null : nodeModel.dragHandleRef;
|
||||
const draggerLeftRef = React.useRef<HTMLDivElement>(null);
|
||||
const connName = blockData?.meta?.connection;
|
||||
const connStatus = util.useAtomValueSafe(getConnStatusAtom(connName));
|
||||
const wshProblem = connName && !connStatus?.wshenabled && connStatus?.status == "connected";
|
||||
@ -256,7 +255,7 @@ const BlockFrame_Header = ({
|
||||
|
||||
return (
|
||||
<div className="block-frame-default-header" ref={dragHandleRef} onContextMenu={onContextMenu}>
|
||||
<WindowDrag ref={draggerLeftRef} className={clsx({ 'left': autoHideTabBar })} />
|
||||
<WindowDrag className={clsx({ 'left': autoHideTabBar })} />
|
||||
{preIconButtonElem}
|
||||
<div className="block-frame-default-header-iconview">
|
||||
{viewIconElem}
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
@use "./../theme.scss";
|
||||
|
||||
// 74px accounts for the macOS window controls and spacing in non-fullscreen mode
|
||||
$darwin-not-fullscreen-indent: 74px;
|
||||
|
||||
.tab-bar-wrapper {
|
||||
@ -43,10 +44,16 @@ $darwin-not-fullscreen-indent: 74px;
|
||||
|
||||
opacity: 0;
|
||||
background: transparent;
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: 6px;
|
||||
|
||||
transition: opacity 0.3s ease, top 0.3s ease;
|
||||
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
backdrop-filter: blur(10px);
|
||||
|
||||
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
|
||||
background: rgb(from var(--block-bg-color) r g b / 0.8);
|
||||
}
|
||||
}
|
||||
|
||||
.tab-bar-wrapper-auto-hide-visible {
|
||||
|
Loading…
Reference in New Issue
Block a user