Problem
After the migration in commit 0399151a, 21 inline styles remain across 12 files. All are classified as Type-D runtime values (computed from props/state) and cannot be expressed as static Tailwind classes.
Files with remaining inline styles
src/components/Modals/ManageWorkspace/Documents/Directory/ContextMenu/index.tsx
src/components/Modals/ManageWorkspace/Documents/WorkspaceDirectory/EmbeddingFileRow.jsx
src/components/WorkspaceChat/ChatContainer/ChatHistory/Chartable/CustomCell.tsx
src/components/WorkspaceChat/ChatContainer/ChatHistory/Chartable/CustomTooltip.tsx
src/components/WorkspaceChat/ChatContainer/ChatHistory/Chartable/index.tsx
src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.tsx
src/components/WorkspaceChat/ChatContainer/ChatHistory/ClarifyingQuestion/index.tsx
src/components/WorkspaceChat/ChatContainer/ChatHistory/ToolApprovalRequest/index.tsx
src/components/WorkspaceChat/ChatContainer/MemoriesSidebar/MemoryCard/CardMenu/index.tsx
src/components/WorkspaceChat/ChatContainer/PromptInput/ToolsMenu/index.tsx
src/components/WorkspaceChat/ChatContainer/PromptInput/ToolsMenu/Tabs/SlashCommands/SlashCommandRow/index.tsx
src/pages/GeneralSettings/MobileConnections/ConnectionModal/index.jsx
Audit
For each remaining style={{...}}, determine:
- Can it be converted to Tailwind arbitrary values? (e.g.,
max-w-[px])
- Is it truly dynamic (computed at runtime)?
- Can it be a CSS variable with
var(--name)?
- Should it stay as
style={{}}?
Document each in docs/INLINE-STYLES-AUDIT.md and apply fixes.
Acceptance Criteria
Aufwand
~2-3h
Related
Problem
After the migration in commit
0399151a, 21 inline styles remain across 12 files. All are classified as Type-D runtime values (computed from props/state) and cannot be expressed as static Tailwind classes.Files with remaining inline styles
Audit
For each remaining
style={{...}}, determine:max-w-[px])var(--name)?style={{}}?Document each in
docs/INLINE-STYLES-AUDIT.mdand apply fixes.Acceptance Criteria
docs/INLINE-STYLES-AUDIT.mdupdatedAufwand
~2-3h
Related