@@ -13,7 +13,7 @@ import type { Logger } from 'roarr';
13
13
14
14
// Theme-consistent spacing constants (in pixels)
15
15
const SPACING_2 = 8 ; // Equivalent to theme token 2
16
- const SPACING_4 = 16 ; // Equivalent to theme token 4
16
+ const SPACING_4 = 16 ; // Equivalent to theme token 4
17
17
const SPACING_8 = 32 ; // Equivalent to theme token 8
18
18
const BORDER_RADIUS_BASE = 6 ; // Equivalent to theme borderRadius "base"
19
19
const BORDER_WIDTH = 1 ; // Standard border width
@@ -86,7 +86,7 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
86
86
fill : 'hsl(220 12% 10% / 0.8)' , // 'base.900' with opacity
87
87
x : SPACING_2 - 2 , // Slight offset for visual balance
88
88
y : SPACING_2 - 2 ,
89
- width : Math . min ( BADGE_MIN_WIDTH + 4 , width - ( SPACING_2 * 2 ) + 4 ) ,
89
+ width : Math . min ( BADGE_MIN_WIDTH + 4 , width - SPACING_2 * 2 + 4 ) ,
90
90
height : BADGE_HEIGHT ,
91
91
cornerRadius : BORDER_RADIUS_BASE ,
92
92
stroke : 'hsl(220 12% 50% / 1)' , // 'base.700'
@@ -151,7 +151,7 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
151
151
const { width, height } = this . manager . stateApi . getBbox ( ) . rect ;
152
152
this . konva . placeholder . rect . width ( width ) ;
153
153
this . konva . placeholder . rect . height ( height ) ;
154
- this . konva . placeholder . badgeBg . width ( Math . min ( BADGE_MIN_WIDTH + 4 , width - ( SPACING_2 * 2 ) + 4 ) ) ;
154
+ this . konva . placeholder . badgeBg . width ( Math . min ( BADGE_MIN_WIDTH + 4 , width - SPACING_2 * 2 + 4 ) ) ;
155
155
this . konva . placeholder . text . width ( Math . min ( BADGE_MIN_WIDTH , width - SPACING_4 ) ) ;
156
156
} ;
157
157
0 commit comments