File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 2
2
// SPDX-License-Identifier: Apache-2.0
3
3
4
4
@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
+ }
5
12
6
13
.block {
7
14
display : flex ;
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ import clsx from "clsx";
40
40
import * as jotai from "jotai" ;
41
41
import * as React from "react" ;
42
42
import { BlockFrameProps } from "./blocktypes" ;
43
+ import { WindowDrag } from "../element/windowdrag" ;
43
44
44
45
const NumActiveConnColors = 8 ;
45
46
@@ -184,6 +185,7 @@ const BlockFrame_Header = ({
184
185
const prevMagifiedState = React . useRef ( magnified ) ;
185
186
const manageConnection = util . useAtomValueSafe ( viewModel ?. manageConnection ) ;
186
187
const dragHandleRef = preview ? null : nodeModel . dragHandleRef ;
188
+ const draggerLeftRef = React . useRef < HTMLDivElement > ( null ) ;
187
189
const connName = blockData ?. meta ?. connection ;
188
190
const connStatus = util . useAtomValueSafe ( getConnStatusAtom ( connName ) ) ;
189
191
const wshProblem = connName && ! connStatus ?. wshenabled && connStatus ?. status == "connected" ;
@@ -252,6 +254,7 @@ const BlockFrame_Header = ({
252
254
253
255
return (
254
256
< div className = "block-frame-default-header" ref = { dragHandleRef } onContextMenu = { onContextMenu } >
257
+ < WindowDrag ref = { draggerLeftRef } className = "left" />
255
258
{ preIconButtonElem }
256
259
< div className = "block-frame-default-header-iconview" >
257
260
{ viewIconElem }
Original file line number Diff line number Diff line change 3
3
4
4
@use " ./../theme.scss" ;
5
5
6
+ $darwin-not-fullscreen-indent : 74px ;
7
+
6
8
.tab-bar-wrapper {
7
9
--default-indent : 10px ;
8
- --darwin-not-fullscreen-indent : 74px ;
9
10
}
10
11
11
12
.darwin :not (.fullscreen ) .tab-bar-wrapper {
12
13
.window-drag.left {
13
- width : var ( -- darwin-not-fullscreen-indent) ;
14
+ width : $ darwin-not-fullscreen-indent ;
14
15
}
15
16
}
16
17
You can’t perform that action at this time.
0 commit comments