From af8401928bc0d2fe2533dd72a05b8ab8cba7f6ea Mon Sep 17 00:00:00 2001 From: Waleed Date: Tue, 5 May 2026 11:21:13 -0700 Subject: [PATCH] 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 --- apps/sim/stores/logs/utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sim/stores/logs/utils.ts b/apps/sim/stores/logs/utils.ts index e18c3ad65e..99a3b61539 100644 --- a/apps/sim/stores/logs/utils.ts +++ b/apps/sim/stores/logs/utils.ts @@ -9,10 +9,10 @@ */ export const MIN_LOG_DETAILS_WIDTH = 320 export const DEFAULT_LOG_DETAILS_WIDTH = 520 -export const MAX_LOG_DETAILS_WIDTH_RATIO = 0.4 +export const MAX_LOG_DETAILS_WIDTH_RATIO = 0.6 /** - * Returns the maximum log details panel width (65vw). + * Returns the maximum log details panel width (60% of viewport width). * Falls back to a reasonable default for SSR. */ export const getMaxLogDetailsWidth = () => @@ -21,7 +21,7 @@ export const getMaxLogDetailsWidth = () => /** * Clamps a width value to the valid panel range for the current viewport. * The floor (`MIN_LOG_DETAILS_WIDTH`) is itself capped by the viewport ratio - * so a small viewport never produces a panel that covers more than 65vw. + * so a small viewport never produces a panel that covers more than 60vw. */ export const clampPanelWidth = (width: number) => { const max = getMaxLogDetailsWidth()