🎨 fix(theme): align UI controls with global radius tokens

Remove hard-coded and capped border radius overrides so shared controls and feature actions consistently follow the active theme radius.

- Replace fixed radius utilities with semantic theme-aware radius tokens
- Remove redundant `rounded-full` and pixel-based overrides from header, toolbar, Playground, and utility actions
- Drop unused `StatusBadge` rounded prop usage
- Keep existing component behavior intact while improving global theme consistency
This commit is contained in:
t0ng7u
2026-05-08 01:50:03 +08:00
parent c19d5aa663
commit 948780e3fa
64 changed files with 193 additions and 129 deletions
@@ -95,10 +95,7 @@ export function PlaygroundInput({
return (
<div className='grid shrink-0 gap-4 px-1 md:pb-4'>
<PromptInput
groupClassName='rounded-[20px] [--radius:20px]'
onSubmit={handleSubmit}
>
<PromptInput groupClassName='rounded-xl' onSubmit={handleSubmit}>
<PromptInputTextarea
autoComplete='off'
autoCorrect='off'
@@ -117,7 +114,7 @@ export function PlaygroundInput({
<DropdownMenuTrigger
render={
<PromptInputButton
className='!rounded-full border font-medium'
className='border font-medium'
disabled={disabled}
variant='outline'
/>
@@ -156,7 +153,7 @@ export function PlaygroundInput({
</DropdownMenu>
<PromptInputButton
className='rounded-full border font-medium'
className='border font-medium'
disabled={disabled}
onClick={() => toast.info(t('Search feature in development'))}
variant='outline'
@@ -180,7 +177,7 @@ export function PlaygroundInput({
{isGenerating && onStop ? (
<PromptInputButton
className='text-foreground rounded-full font-medium'
className='text-foreground font-medium'
onClick={onStop}
variant='secondary'
>
@@ -190,7 +187,7 @@ export function PlaygroundInput({
</PromptInputButton>
) : (
<PromptInputButton
className='text-foreground rounded-full font-medium'
className='text-foreground font-medium'
disabled={disabled || !text.trim()}
type='submit'
variant='secondary'
+1 -1
View File
@@ -12,7 +12,7 @@ export function getMessageContentStyles() {
'group-[.is-user]:text-foreground',
'group-[.is-user]:bg-secondary',
'dark:group-[.is-user]:bg-muted',
'group-[.is-user]:rounded-[24px]',
'group-[.is-user]:rounded-3xl',
// Assistant bubble: flat serif style (one-sided style)
'group-[.is-assistant]:text-foreground',
'group-[.is-assistant]:bg-transparent',