Skip to content

Commit dc6b8e1

Browse files
hipsterusernamepsychedelicious
authored andcommitted
prettier
1 parent c1b34e1 commit dc6b8e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

invokeai/frontend/web/src/features/controlLayers/konva/CanvasStagingAreaModule.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type { Logger } from 'roarr';
1313

1414
// Theme-consistent spacing constants (in pixels)
1515
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
1717
const SPACING_8 = 32; // Equivalent to theme token 8
1818
const BORDER_RADIUS_BASE = 6; // Equivalent to theme borderRadius "base"
1919
const BORDER_WIDTH = 1; // Standard border width
@@ -86,7 +86,7 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
8686
fill: 'hsl(220 12% 10% / 0.8)', // 'base.900' with opacity
8787
x: SPACING_2 - 2, // Slight offset for visual balance
8888
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),
9090
height: BADGE_HEIGHT,
9191
cornerRadius: BORDER_RADIUS_BASE,
9292
stroke: 'hsl(220 12% 50% / 1)', // 'base.700'
@@ -151,7 +151,7 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
151151
const { width, height } = this.manager.stateApi.getBbox().rect;
152152
this.konva.placeholder.rect.width(width);
153153
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));
155155
this.konva.placeholder.text.width(Math.min(BADGE_MIN_WIDTH, width - SPACING_4));
156156
};
157157

0 commit comments

Comments
 (0)