Skip to content

[STYLE] 21 remaining inline styles in 12 files — audit needed for Tailwind migration #111

@Delqhi

Description

@Delqhi

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:

  1. Can it be converted to Tailwind arbitrary values? (e.g., max-w-[px])
  2. Is it truly dynamic (computed at runtime)?
  3. Can it be a CSS variable with var(--name)?
  4. Should it stay as style={{}}?

Document each in docs/INLINE-STYLES-AUDIT.md and apply fixes.

Acceptance Criteria

  • All 21 inline styles audited
  • Each categorized: "convertible" | "dynamic-required" | "acceptable-as-style"
  • Maximum possible converted to Tailwind utilities
  • ESLint rule updated to allow only "acceptable-as-style" patterns
  • docs/INLINE-STYLES-AUDIT.md updated

Aufwand

~2-3h

Related

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions