Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/sim/stores/logs/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () =>
Expand All @@ -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()
Expand Down
Loading