Skip to content

Commit 81cd643

Browse files
BillLeoutsakosvl346Bill Leoutsakos
andauthored
refactor(ui): remove styles already supplied by EMCN controls (#7979)
Co-authored-by: Bill Leoutsakos <billleoutsakos@Bills-MacBook-Pro.local>
1 parent ba95235 commit 81cd643

25 files changed

Lines changed: 41 additions & 51 deletions

File tree

‎apps/sim/app/(auth)/components/constants.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ export const AUTH_CONTROL_HEIGHT = 'h-9'
1414
* under `justify-center` (the landing `HeroCta` idiom). Height-only inputs use
1515
* {@link AUTH_CONTROL_HEIGHT}; buttons compose this on top of it.
1616
*/
17-
export const AUTH_BUTTON_CLASS = `${AUTH_CONTROL_HEIGHT} w-full justify-center [&>span]:flex-none`
17+
export const AUTH_BUTTON_CLASS = `${AUTH_CONTROL_HEIGHT} justify-center [&>span]:flex-none`

‎apps/sim/app/(interfaces)/chat/components/message-container/message-container.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function ChatMessageContainer({
7272
<Button
7373
onClick={scrollToBottom}
7474
size='sm'
75-
className='gap-1 rounded-full px-3 py-1 shadow-medium'
75+
className='gap-1 rounded-full px-3 shadow-medium'
7676
>
7777
<ArrowDown className='size-3.5' />
7878
<span className='sr-only'>Scroll to bottom</span>

‎apps/sim/app/(interfaces)/chat/components/message/components/file-download.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export function ChatFileDownload({ file }: ChatFileDownloadProps) {
172172
variant='default'
173173
onClick={handleDownload}
174174
disabled={isDownloading}
175-
className='group flex h-auto w-[200px] items-center gap-2 rounded-lg px-3 py-2'
175+
className='group flex h-auto w-[200px] gap-2 rounded-lg px-3 py-2'
176176
>
177177
<div className='flex size-8 shrink-0 items-center justify-center'>{renderIcon()}</div>
178178
<div className='min-w-0 flex-1 text-left'>

‎apps/sim/app/o/[organizationId]/home/components/composer/composer.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { useAnimatedPlaceholder } from '@/hooks/use-animated-placeholder'
1414
import { useChatInputFocus } from '@/hooks/use-chat-input-focus'
1515
import { useVoiceInput } from '@/hooks/use-voice-input'
1616

17-
const SEND_BUTTON_BASE = 'size-[28px] rounded-full border-0 p-0 transition-colors'
17+
const SEND_BUTTON_BASE = 'size-[28px] rounded-full border-0 p-0'
1818
const SEND_BUTTON_ACTIVE =
1919
'bg-[#383838] hover:bg-[#575757] dark:bg-[#E0E0E0] dark:hover:bg-[#CFCFCF]'
2020
const SEND_BUTTON_DISABLED = 'bg-[#808080] dark:bg-[#808080]'

‎apps/sim/app/o/[organizationId]/search/search.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
} from '@/app/workspace/[workspaceId]/w/components/sidebar/constants'
2626
import { useVoiceInput } from '@/hooks/use-voice-input'
2727

28-
const SUBMIT_BUTTON_BASE = 'size-[28px] shrink-0 rounded-full border-0 p-0 transition-colors'
28+
const SUBMIT_BUTTON_BASE = 'size-[28px] shrink-0 rounded-full border-0 p-0'
2929
const SUBMIT_BUTTON_ACTIVE =
3030
'bg-[#383838] hover:bg-[#575757] dark:bg-[#E0E0E0] dark:hover:bg-[#CFCFCF]'
3131
const SUBMIT_BUTTON_DISABLED = 'bg-[#808080] dark:bg-[#808080]'

‎apps/sim/app/workspace/[workspaceId]/components/resource/components/action-bar/action-bar.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { renderMoveOptions } from '@/app/workspace/[workspaceId]/components/fold
1919
/** Shared chrome for every action button, so the bar reads as one control strip. */
2020
const ACTION_BUTTON_CLASS = cn(
2121
chipFilledFillTokens,
22-
'hover-hover:text-[var(--text-inverse)]! size-[28px] rounded-lg p-0 text-[var(--text-secondary)] hover-hover:bg-[var(--brand-secondary)]'
22+
'hover-hover:text-[var(--text-inverse)]! size-[28px] rounded-lg p-0 hover-hover:bg-[var(--brand-secondary)]'
2323
)
2424

2525
interface ActionButtonProps {

‎apps/sim/app/workspace/[workspaceId]/components/resource/resource.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,8 @@ const Pagination = memo(function Pagination({
539539
variant='ghost'
540540
onClick={() => onPageChange(page)}
541541
className={cn(
542-
'h-auto p-0 text-sm transition-colors hover-hover:bg-transparent hover-hover:text-[var(--text-body)]',
543-
page === currentPage ? 'text-[var(--text-body)]' : 'text-[var(--text-secondary)]'
542+
'h-auto p-0 text-sm hover-hover:bg-transparent hover-hover:text-[var(--text-body)]',
543+
page === currentPage ? 'text-[var(--text-body)]' : ''
544544
)}
545545
>
546546
{page}

‎apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/constants.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const SCROLLER_CLASSES = cn(
9797
'[-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden'
9898
)
9999

100-
export const SEND_BUTTON_BASE = 'h-[28px] w-[28px] rounded-full border-0 p-0 transition-colors'
100+
export const SEND_BUTTON_BASE = 'h-[28px] w-[28px] rounded-full border-0 p-0'
101101
export const SEND_BUTTON_ACTIVE =
102102
'bg-[#383838] hover:bg-[#575757] dark:bg-[#E0E0E0] dark:hover:bg-[#CFCFCF]'
103103
export const SEND_BUTTON_DISABLED = 'bg-[#808080] dark:bg-[#808080]'

‎apps/sim/app/workspace/[workspaceId]/knowledge/[id]/components/action-bar/action-bar.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useUserPermissionsContext } from '@/app/workspace/[workspaceId]/provide
66
/** One source of truth for the button chrome, so the three actions read as one control strip. */
77
const ACTION_BUTTON_CLASS = cn(
88
chipFilledFillTokens,
9-
'hover-hover:text-[var(--text-inverse)]! size-[28px] rounded-lg p-0 text-[var(--text-secondary)] hover-hover:bg-[var(--brand-secondary)]'
9+
'hover-hover:text-[var(--text-inverse)]! size-[28px] rounded-lg p-0 hover-hover:bg-[var(--brand-secondary)]'
1010
)
1111

1212
interface ActionBarProps {

‎apps/sim/app/workspace/[workspaceId]/logs/components/log-details/components/trace-view/trace-view.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ const TraceTreeRow = memo(function TraceTreeRow({
323323
<Button
324324
type='button'
325325
variant='ghost'
326-
className='size-[14px] shrink-0 p-0 text-[var(--text-tertiary)] hover-hover:bg-[var(--surface-4)] hover-hover:text-[var(--text-primary)]'
326+
className='size-[14px] shrink-0 p-0 text-[var(--text-tertiary)] hover-hover:bg-[var(--surface-4)]'
327327
onClick={(e) => {
328328
e.stopPropagation()
329329
onToggleExpand(id)
@@ -512,7 +512,7 @@ function DetailCodeSection({
512512
e.stopPropagation()
513513
handleCopy()
514514
}}
515-
className='size-[20px] cursor-pointer border border-[var(--border-1)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
515+
className='size-[20px] cursor-pointer border-[var(--border-1)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
516516
>
517517
{copied ? (
518518
<Check className='size-[10px] text-[var(--text-success)]' />
@@ -533,7 +533,7 @@ function DetailCodeSection({
533533
e.stopPropagation()
534534
activateSearch()
535535
}}
536-
className='size-[20px] cursor-pointer border border-[var(--border-1)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
536+
className='size-[20px] cursor-pointer border-[var(--border-1)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
537537
>
538538
<Search className='size-[10px]' />
539539
</Button>

0 commit comments

Comments
 (0)