mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user