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
This commit is contained in:
Waleed
2026-05-05 11:21:13 -07:00
committed by GitHub
parent ab551ccb41
commit af8401928b
+3 -3
View File
@@ -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()