MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getResponsiveStyle

Function getResponsiveStyle

apps/start/src/components/widget-table.tsx:84–96  ·  view source on GitHub ↗
(
  priority: ColumnPriority,
)

Source from the content-addressed store, hash-verified

82}
83
84function getResponsiveStyle(
85 priority: ColumnPriority,
86): React.CSSProperties | undefined {
87 if (priority === 1) {
88 return undefined;
89 }
90
91 const minWidth = (priority - 1) * 100 + 100;
92 return {
93 // Use CSS custom property for container query
94 // Will be handled by inline style with container query
95 } as React.CSSProperties;
96}
97
98/**
99 * Generates container query class based on custom min-width.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected