Skip to content

Commit e2aea0e

Browse files
committed
Fix Tailwind class ordering (lint-fix)
1 parent 04b14d6 commit e2aea0e

14 files changed

+33
-33
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ function AppInner() {
662662

663663
return (
664664
<>
665-
<div className="bg-gray-950 flex h-screen overflow-hidden [@media(max-width:768px)]:flex-col">
665+
<div className="flex h-screen overflow-hidden bg-gray-950 [@media(max-width:768px)]:flex-col">
666666
<LeftSidebar
667667
projects={projects}
668668
workspaceMetadata={workspaceMetadata}

src/components/CommandPalette.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,12 @@ export const CommandPalette: React.FC<CommandPaletteProps> = ({ getSlashContext
364364
}}
365365
>
366366
<Command
367-
className="text-gray-100 font-primary w-[min(720px,92vw)] overflow-hidden rounded-lg border border-gray-800 bg-gray-900 shadow-[0_10px_40px_rgba(0,0,0,0.4)]"
367+
className="font-primary w-[min(720px,92vw)] overflow-hidden rounded-lg border border-gray-800 bg-gray-900 text-gray-100 shadow-[0_10px_40px_rgba(0,0,0,0.4)]"
368368
onMouseDown={(e: React.MouseEvent) => e.stopPropagation()}
369369
shouldFilter={shouldUseCmdkFilter}
370370
>
371371
<Command.Input
372-
className="text-gray-100 border-gray-900 w-full border-b border-none bg-gray-950 px-3.5 py-3 text-sm outline-none"
372+
className="w-full border-b border-none border-gray-900 bg-gray-950 px-3.5 py-3 text-sm text-gray-100 outline-none"
373373
value={query}
374374
onValueChange={handleQueryChange}
375375
placeholder={

src/components/Context1MCheckbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const Context1MCheckbox: React.FC<Context1MCheckboxProps> = ({ modelStrin
2222
type="checkbox"
2323
checked={use1M}
2424
onChange={(e) => setUse1M(e.target.checked)}
25-
className="checked:bg-sky-600 relative m-0 h-[11px] w-3 cursor-pointer appearance-none rounded-sm border border-gray-800 bg-gray-950 checked:border-sky-600 checked:after:absolute checked:after:top-0 checked:after:left-[3px] checked:after:h-[6px] checked:after:w-1 checked:after:rotate-45 checked:after:border-r-[1.5px] checked:after:border-b-[1.5px] checked:after:border-solid checked:after:border-white checked:after:content-[''] hover:border-sky-600"
25+
className="relative m-0 h-[11px] w-3 cursor-pointer appearance-none rounded-sm border border-gray-800 bg-gray-950 checked:border-sky-600 checked:bg-sky-600 checked:after:absolute checked:after:top-0 checked:after:left-[3px] checked:after:h-[6px] checked:after:w-1 checked:after:rotate-45 checked:after:border-r-[1.5px] checked:after:border-b-[1.5px] checked:after:border-solid checked:after:border-white checked:after:content-[''] hover:border-sky-600"
2626
/>
2727
1M Context
2828
</label>

src/components/DirectorySelectModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const DirectorySelectModal: React.FC = () => {
8282
onKeyDown={handleKeyDown}
8383
placeholder="/home/user/projects/my-project"
8484
autoFocus
85-
className="border-gray-700 mb-5 w-full rounded border bg-gray-900 px-3 py-2 font-mono text-sm text-white placeholder:text-gray-500 focus:border-sky-600 focus:outline-none"
85+
className="mb-5 w-full rounded border border-gray-700 bg-gray-900 px-3 py-2 font-mono text-sm text-white placeholder:text-gray-500 focus:border-sky-600 focus:outline-none"
8686
/>
8787
{error && <div className="text-error -mt-3 mb-3 text-xs">{error}</div>}
8888
<ModalActions>

src/components/Messages/ChatBarrier/StreamingBarrier.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const StreamingBarrier: React.FC<StreamingBarrierProps> = ({
2424
<span className="text-assistant-border font-mono text-[11px] whitespace-nowrap select-none">
2525
~{tokenCount.toLocaleString()} tokens
2626
{tps !== undefined && tps > 0 && (
27-
<span className="text-gray-400 ml-1">@ {tps} t/s</span>
27+
<span className="ml-1 text-gray-400">@ {tps} t/s</span>
2828
)}
2929
</span>
3030
)}

src/components/Messages/MessageWindow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const MessageWindow: React.FC<MessageWindowProps> = ({
6868
>
6969
{backgroundEffect}
7070
<div
71-
className="text-gray-300 relative z-10 flex items-center justify-between border-b border-white/10 bg-white/5 px-3 py-1 text-[11px] font-medium"
71+
className="relative z-10 flex items-center justify-between border-b border-white/10 bg-white/5 px-3 py-1 text-[11px] font-medium text-gray-300"
7272
data-message-header
7373
>
7474
<div className="flex min-w-0 flex-1 items-baseline gap-3" data-message-header-left>

src/components/NewWorkspaceModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const NewWorkspaceModal: React.FC<NewWorkspaceModalProps> = ({
100100
describedById={infoId}
101101
>
102102
<form onSubmit={(event) => void handleSubmit(event)}>
103-
<div className="[&_input]:border-gray-700 [&_select]:border-gray-700 mb-5 [&_input]:w-full [&_input]:rounded [&_input]:border [&_input]:bg-gray-900 [&_input]:px-3 [&_input]:py-2 [&_input]:text-sm [&_input]:text-white [&_input]:focus:border-sky-600 [&_input]:focus:outline-none [&_input]:disabled:cursor-not-allowed [&_input]:disabled:opacity-60 [&_label]:mb-2 [&_label]:block [&_label]:text-sm [&_label]:text-gray-200 [&_option]:bg-gray-900 [&_option]:text-white [&_select]:w-full [&_select]:cursor-pointer [&_select]:rounded [&_select]:border [&_select]:bg-gray-900 [&_select]:px-3 [&_select]:py-2 [&_select]:text-sm [&_select]:text-white [&_select]:focus:border-sky-600 [&_select]:focus:outline-none [&_select]:disabled:cursor-not-allowed [&_select]:disabled:opacity-60">
103+
<div className="mb-5 [&_input]:w-full [&_input]:rounded [&_input]:border [&_input]:border-gray-700 [&_input]:bg-gray-900 [&_input]:px-3 [&_input]:py-2 [&_input]:text-sm [&_input]:text-white [&_input]:focus:border-sky-600 [&_input]:focus:outline-none [&_input]:disabled:cursor-not-allowed [&_input]:disabled:opacity-60 [&_label]:mb-2 [&_label]:block [&_label]:text-sm [&_label]:text-gray-200 [&_option]:bg-gray-900 [&_option]:text-white [&_select]:w-full [&_select]:cursor-pointer [&_select]:rounded [&_select]:border [&_select]:border-gray-700 [&_select]:bg-gray-900 [&_select]:px-3 [&_select]:py-2 [&_select]:text-sm [&_select]:text-white [&_select]:focus:border-sky-600 [&_select]:focus:outline-none [&_select]:disabled:cursor-not-allowed [&_select]:disabled:opacity-60">
104104
<label htmlFor="branchName">
105105
<TooltipWrapper inline>
106106
<span className="cursor-help underline decoration-[#666] decoration-dotted underline-offset-2">
@@ -137,7 +137,7 @@ const NewWorkspaceModal: React.FC<NewWorkspaceModalProps> = ({
137137
{error && <div className="text-danger-light mt-1.5 text-[13px]">{error}</div>}
138138
</div>
139139

140-
<div className="[&_input]:border-gray-700 [&_select]:border-gray-700 mb-5 [&_input]:w-full [&_input]:rounded [&_input]:border [&_input]:bg-gray-900 [&_input]:px-3 [&_input]:py-2 [&_input]:text-sm [&_input]:text-white [&_input]:focus:border-sky-600 [&_input]:focus:outline-none [&_input]:disabled:cursor-not-allowed [&_input]:disabled:opacity-60 [&_label]:mb-2 [&_label]:block [&_label]:text-sm [&_label]:text-gray-200 [&_option]:bg-gray-900 [&_option]:text-white [&_select]:w-full [&_select]:cursor-pointer [&_select]:rounded [&_select]:border [&_select]:bg-gray-900 [&_select]:px-3 [&_select]:py-2 [&_select]:text-sm [&_select]:text-white [&_select]:focus:border-sky-600 [&_select]:focus:outline-none [&_select]:disabled:cursor-not-allowed [&_select]:disabled:opacity-60">
140+
<div className="mb-5 [&_input]:w-full [&_input]:rounded [&_input]:border [&_input]:border-gray-700 [&_input]:bg-gray-900 [&_input]:px-3 [&_input]:py-2 [&_input]:text-sm [&_input]:text-white [&_input]:focus:border-sky-600 [&_input]:focus:outline-none [&_input]:disabled:cursor-not-allowed [&_input]:disabled:opacity-60 [&_label]:mb-2 [&_label]:block [&_label]:text-sm [&_label]:text-gray-200 [&_option]:bg-gray-900 [&_option]:text-white [&_select]:w-full [&_select]:cursor-pointer [&_select]:rounded [&_select]:border [&_select]:border-gray-700 [&_select]:bg-gray-900 [&_select]:px-3 [&_select]:py-2 [&_select]:text-sm [&_select]:text-white [&_select]:focus:border-sky-600 [&_select]:focus:outline-none [&_select]:disabled:cursor-not-allowed [&_select]:disabled:opacity-60">
141141
<label htmlFor="trunkBranch">Trunk Branch:</label>
142142
{hasBranches ? (
143143
<select

src/components/ProjectSidebar.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ const ProjectDragLayer: React.FC = () => {
137137
<div className="pointer-events-none fixed inset-0 z-[9999] cursor-grabbing">
138138
<div style={{ transform: `translate(${currentOffset.x + 10}px, ${currentOffset.y + 10}px)` }}>
139139
<div className="border-l-accent flex w-fit max-w-72 min-w-44 items-center rounded border-l-[3px] bg-gray-900/95 px-3 py-1.5 text-gray-200 shadow-[0_6px_24px_rgba(0,0,0,0.4)]">
140-
<span className="text-gray-400 mr-1.5 text-xs"></span>
140+
<span className="mr-1.5 text-xs text-gray-400"></span>
141141
<span className="mr-2 text-[10px] text-gray-500"></span>
142142
<div className="min-w-0 flex-1">
143143
<div className="truncate text-sm font-medium tracking-[0.2px] text-gray-200">
144144
{name}
145145
</div>
146-
<div className="text-gray-600 font-monospace mt-0.5 truncate text-[11px]">
146+
<div className="font-monospace mt-0.5 truncate text-[11px] text-gray-600">
147147
{abbrevPath}
148148
</div>
149149
</div>
@@ -422,7 +422,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
422422
>
423423
{!collapsed && (
424424
<>
425-
<div className="border-gray-950 flex items-center justify-between border-b bg-gray-900 p-4">
425+
<div className="flex items-center justify-between border-b border-gray-950 bg-gray-900 p-4">
426426
<h2 className="m-0 text-[13px] font-semibold tracking-[0.8px] text-gray-200 uppercase">
427427
Projects
428428
</h2>
@@ -445,7 +445,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
445445
<p className="mb-4 text-[13px] text-gray-500">No projects</p>
446446
<button
447447
onClick={onAddProject}
448-
className="bg-sky-600 hover:bg-sky-600-dark cursor-pointer rounded border-none px-4 py-2 text-[13px] text-white transition-colors duration-200"
448+
className="hover:bg-sky-600-dark cursor-pointer rounded border-none bg-sky-600 px-4 py-2 text-[13px] text-white transition-colors duration-200"
449449
>
450450
Add Project
451451
</button>
@@ -461,7 +461,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
461461
const isExpanded = expandedProjects.has(projectPath);
462462

463463
return (
464-
<div key={projectPath} className="border-gray-900 border-b">
464+
<div key={projectPath} className="border-b border-gray-900">
465465
<DraggableProjectItem
466466
projectPath={projectPath}
467467
onReorder={handleReorder}
@@ -482,7 +482,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
482482
<span
483483
data-drag-handle
484484
aria-hidden
485-
className="text-gray-400 mr-1.5 cursor-grab text-xs opacity-0 transition-opacity duration-150 select-none"
485+
className="mr-1.5 cursor-grab text-xs text-gray-400 opacity-0 transition-opacity duration-150 select-none"
486486
>
487487
488488
</span>
@@ -499,7 +499,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
499499
{projectName}
500500
</div>
501501
<TooltipWrapper inline>
502-
<div className="text-gray-600 font-monospace mt-px truncate text-[11px]">
502+
<div className="font-monospace mt-px truncate text-[11px] text-gray-600">
503503
{abbreviatePath(projectPath)}
504504
</div>
505505
<Tooltip className="tooltip" align="left">
@@ -515,7 +515,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
515515
}}
516516
aria-label={`Manage secrets for ${projectName}`}
517517
data-project-path={projectPath}
518-
className="text-gray-600 hover:bg-sky-600/10 mr-1 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-sm opacity-0 transition-all duration-200 hover:text-sky-600"
518+
className="mr-1 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-sm text-gray-600 opacity-0 transition-all duration-200 hover:bg-sky-600/10 hover:text-sky-600"
519519
>
520520
🔑
521521
</button>
@@ -532,7 +532,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
532532
title="Remove project"
533533
aria-label={`Remove project ${projectName}`}
534534
data-project-path={projectPath}
535-
className="text-gray-600 hover:text-danger-light hover:bg-danger-light/10 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-base opacity-0 transition-all duration-200"
535+
className="hover:text-danger-light hover:bg-danger-light/10 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-base text-gray-600 opacity-0 transition-all duration-200"
536536
>
537537
×
538538
</button>
@@ -544,12 +544,12 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
544544

545545
{isExpanded && (
546546
<div id={workspaceListId}>
547-
<div className="border-gray-900 border-b px-3 py-2 pl-[22px]">
547+
<div className="border-b border-gray-900 px-3 py-2 pl-[22px]">
548548
<button
549549
onClick={() => onAddWorkspace(projectPath)}
550550
data-project-path={projectPath}
551551
aria-label={`Add workspace to ${projectName}`}
552-
className="border-gray-700 hover:border-gray-800-darker w-full cursor-pointer rounded border border-dashed bg-transparent px-3 py-1.5 text-left text-[13px] text-gray-500 transition-all duration-200 hover:bg-gray-900 hover:text-gray-200"
552+
className="hover:border-gray-800-darker w-full cursor-pointer rounded border border-dashed border-gray-700 bg-transparent px-3 py-1.5 text-left text-[13px] text-gray-500 transition-all duration-200 hover:bg-gray-900 hover:text-gray-200"
553553
>
554554
+ New Workspace
555555
{selectedWorkspace?.projectPath === projectPath &&
@@ -592,16 +592,16 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
592592
: `Expand workspaces older than ${formatOldWorkspaceThreshold()}`
593593
}
594594
aria-expanded={showOldWorkspaces}
595-
className="border-gray-900 flex w-full cursor-pointer items-center justify-between border-t border-none bg-transparent px-3 py-2 pl-[22px] text-xs font-medium text-gray-500 transition-all duration-150 hover:bg-white/[0.03] hover:text-gray-400 [&:hover_.arrow]:text-gray-400"
595+
className="flex w-full cursor-pointer items-center justify-between border-t border-none border-gray-900 bg-transparent px-3 py-2 pl-[22px] text-xs font-medium text-gray-500 transition-all duration-150 hover:bg-white/[0.03] hover:text-gray-400 [&:hover_.arrow]:text-gray-400"
596596
>
597597
<div className="flex items-center gap-1.5">
598598
<span>Older than {formatOldWorkspaceThreshold()}</span>
599-
<span className="text-gray-400 font-normal">
599+
<span className="font-normal text-gray-400">
600600
({old.length})
601601
</span>
602602
</div>
603603
<span
604-
className="arrow text-gray-400 text-[11px] transition-transform duration-200 ease-in-out"
604+
className="arrow text-[11px] text-gray-400 transition-transform duration-200 ease-in-out"
605605
style={{
606606
transform: showOldWorkspaces
607607
? "rotate(90deg)"
@@ -629,7 +629,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
629629
<TooltipWrapper inline>
630630
<button
631631
onClick={onToggleCollapsed}
632-
className="border-gray-950 mt-auto flex h-9 w-full cursor-pointer items-center justify-center border-t border-none bg-transparent p-0 text-sm text-gray-500 transition-all duration-200 hover:bg-gray-900 hover:text-gray-200"
632+
className="mt-auto flex h-9 w-full cursor-pointer items-center justify-center border-t border-none border-gray-950 bg-transparent p-0 text-sm text-gray-500 transition-all duration-200 hover:bg-gray-900 hover:text-gray-200"
633633
>
634634
{collapsed ? "»" : "«"}
635635
</button>

src/components/RightSidebar/CodeReview/ReviewControls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const ReviewControls: React.FC<ReviewControlsProps> = ({
9393
onBlur={handleBaseBlur}
9494
onKeyDown={handleBaseKeyDown}
9595
placeholder="HEAD, main, etc."
96-
className="border-gray-700 placeholder:text-gray-400 w-36 rounded border bg-gray-950 px-2 py-1 font-mono text-[11px] text-gray-200 transition-[border-color] duration-200 hover:border-sky-600 focus:border-sky-600 focus:outline-none"
96+
className="w-36 rounded border border-gray-700 bg-gray-950 px-2 py-1 font-mono text-[11px] text-gray-200 transition-[border-color] duration-200 placeholder:text-gray-400 hover:border-sky-600 focus:border-sky-600 focus:outline-none"
9797
/>
9898
<datalist id="base-suggestions">
9999
<option value="HEAD" />

src/components/RightSidebar/CodeReview/ReviewPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ export const ReviewPanel: React.FC<ReviewPanelProps> = ({
571571
placeholder={`Search in files and hunks... (${formatKeybind(KEYBINDS.FOCUS_REVIEW_SEARCH)})`}
572572
value={searchState.input}
573573
onChange={(e) => setSearchState({ ...searchState, input: e.target.value })}
574-
className="placeholder:text-gray-400 flex h-full flex-1 items-center border-none bg-transparent px-2.5 py-1.5 font-sans text-xs leading-[1.4] text-gray-200 outline-none focus:bg-gray-900"
574+
className="flex h-full flex-1 items-center border-none bg-transparent px-2.5 py-1.5 font-sans text-xs leading-[1.4] text-gray-200 outline-none placeholder:text-gray-400 focus:bg-gray-900"
575575
/>
576576
<TooltipWrapper inline>
577577
<button

0 commit comments

Comments
 (0)