Skip to content

Commit af84019

Browse files
authored
improvement(logs): increase log details panel max width from 40vw to 60vw (#4449)
* improvement(logs): increase log details panel max width from 40vw to 60vw * chore(logs): fix stale 65vw references in JSDoc comments
1 parent ab551cc commit af84019

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/sim/stores/logs/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
*/
1010
export const MIN_LOG_DETAILS_WIDTH = 320
1111
export const DEFAULT_LOG_DETAILS_WIDTH = 520
12-
export const MAX_LOG_DETAILS_WIDTH_RATIO = 0.4
12+
export const MAX_LOG_DETAILS_WIDTH_RATIO = 0.6
1313

1414
/**
15-
* Returns the maximum log details panel width (65vw).
15+
* Returns the maximum log details panel width (60% of viewport width).
1616
* Falls back to a reasonable default for SSR.
1717
*/
1818
export const getMaxLogDetailsWidth = () =>
@@ -21,7 +21,7 @@ export const getMaxLogDetailsWidth = () =>
2121
/**
2222
* Clamps a width value to the valid panel range for the current viewport.
2323
* The floor (`MIN_LOG_DETAILS_WIDTH`) is itself capped by the viewport ratio
24-
* so a small viewport never produces a panel that covers more than 65vw.
24+
* so a small viewport never produces a panel that covers more than 60vw.
2525
*/
2626
export const clampPanelWidth = (width: number) => {
2727
const max = getMaxLogDetailsWidth()

0 commit comments

Comments
 (0)