File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 22// SPDX-License-Identifier: Apache-2.0
33
44@use " ../mixins.scss" ;
5+ @use " ../tab/tabbar.scss" as tabbar ;
6+
7+ .darwin :not (.fullscreen ) .block.block-frame-default .block-frame-default-header {
8+ .window-drag.left {
9+ width : tabbar .$darwin-not-fullscreen-indent ;
10+ }
11+ }
512
613.block {
714 display : flex ;
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ import clsx from "clsx";
4040import * as jotai from "jotai" ;
4141import * as React from "react" ;
4242import { BlockFrameProps } from "./blocktypes" ;
43+ import { WindowDrag } from "../element/windowdrag" ;
4344
4445const NumActiveConnColors = 8 ;
4546
@@ -184,6 +185,7 @@ const BlockFrame_Header = ({
184185 const prevMagifiedState = React . useRef ( magnified ) ;
185186 const manageConnection = util . useAtomValueSafe ( viewModel ?. manageConnection ) ;
186187 const dragHandleRef = preview ? null : nodeModel . dragHandleRef ;
188+ const draggerLeftRef = React . useRef < HTMLDivElement > ( null ) ;
187189 const connName = blockData ?. meta ?. connection ;
188190 const connStatus = util . useAtomValueSafe ( getConnStatusAtom ( connName ) ) ;
189191 const wshProblem = connName && ! connStatus ?. wshenabled && connStatus ?. status == "connected" ;
@@ -252,6 +254,7 @@ const BlockFrame_Header = ({
252254
253255 return (
254256 < div className = "block-frame-default-header" ref = { dragHandleRef } onContextMenu = { onContextMenu } >
257+ < WindowDrag ref = { draggerLeftRef } className = "left" />
255258 { preIconButtonElem }
256259 < div className = "block-frame-default-header-iconview" >
257260 { viewIconElem }
Original file line number Diff line number Diff line change 33
44@use " ./../theme.scss" ;
55
6+ $darwin-not-fullscreen-indent : 74px ;
7+
68.tab-bar-wrapper {
79 --default-indent : 10px ;
8- --darwin-not-fullscreen-indent : 74px ;
910}
1011
1112.darwin :not (.fullscreen ) .tab-bar-wrapper {
1213 .window-drag.left {
13- width : var ( -- darwin-not-fullscreen-indent) ;
14+ width : $ darwin-not-fullscreen-indent ;
1415 }
1516}
1617
You can’t perform that action at this time.
0 commit comments