mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-10 22:55:16 -05:00
* feat(deployed-form): added deployed form input * styling consolidation, finishing touches on form * updated docs * remove unused files with knip * added more form fields * consolidated more test utils * remove unused/unneeded zustand stores, refactored stores for consistency * improvement(files): uncolorized plan name * feat(emcn): button-group * feat(emcn): tag input, tooltip shortcut * improvement(emcn): modal padding, api, chat, form * fix: deleted migrations * feat(form): added migrations * fix(emcn): tag input * fix: failing tests on build * add suplementary hover and fix bg color in date picker * fix: build errors --------- Co-authored-by: Emir Karabeg <emirkarabeg@berkeley.edu>
13 lines
360 B
TypeScript
13 lines
360 B
TypeScript
/**
|
|
* Width constraints for the log details panel.
|
|
*/
|
|
export const MIN_LOG_DETAILS_WIDTH = 400
|
|
export const DEFAULT_LOG_DETAILS_WIDTH = 400
|
|
|
|
/**
|
|
* Returns the maximum log details panel width (50vw).
|
|
* Falls back to a reasonable default for SSR.
|
|
*/
|
|
export const getMaxLogDetailsWidth = () =>
|
|
typeof window !== 'undefined' ? window.innerWidth * 0.5 : 800
|