>,
@@ -82,7 +82,7 @@ export const CustomEmoji: Story = {
export const ImageIcon: Story = {
render: args => StoryWrapper(
-
+
= ({
style={{ background: background || '#D5F5F6' }}
>
{isValidImageIcon
- ?
+ ?
: (icon && icon !== '') ? : }
)
diff --git a/web/app/components/base/app-icon-picker/index.stories.tsx b/web/app/components/base/app-icon-picker/index.stories.tsx
index 08e9d69f32..3792e7b358 100644
--- a/web/app/components/base/app-icon-picker/index.stories.tsx
+++ b/web/app/components/base/app-icon-picker/index.stories.tsx
@@ -43,7 +43,7 @@ const AppIconPickerDemo = () => {
Selection preview
-
+
{selection ? JSON.stringify(selection, null, 2) : 'No icon selected yet.'}
diff --git a/web/app/components/base/app-icon/__tests__/index.spec.tsx b/web/app/components/base/app-icon/__tests__/index.spec.tsx
index 54c1b8c361..84d7b039ab 100644
--- a/web/app/components/base/app-icon/__tests__/index.spec.tsx
+++ b/web/app/components/base/app-icon/__tests__/index.spec.tsx
@@ -74,25 +74,25 @@ describe('AppIcon', () => {
it('applies size classes correctly', () => {
const { container: xsContainer } = render(
)
- expect(xsContainer.firstChild).toHaveClass('w-4 h-4 rounded-sm')
+ expect(xsContainer.firstChild).toHaveClass('size-4 rounded-sm')
const { container: tinyContainer } = render(
)
- expect(tinyContainer.firstChild).toHaveClass('w-6 h-6 rounded-md')
+ expect(tinyContainer.firstChild).toHaveClass('size-6 rounded-md')
const { container: smallContainer } = render(
)
- expect(smallContainer.firstChild).toHaveClass('w-8 h-8 rounded-lg')
+ expect(smallContainer.firstChild).toHaveClass('size-8 rounded-lg')
const { container: mediumContainer } = render(
)
- expect(mediumContainer.firstChild).toHaveClass('w-9 h-9 rounded-[10px]')
+ expect(mediumContainer.firstChild).toHaveClass('h-9 w-9 rounded-[10px]')
const { container: largeContainer } = render(
)
- expect(largeContainer.firstChild).toHaveClass('w-10 h-10 rounded-[10px]')
+ expect(largeContainer.firstChild).toHaveClass('h-10 w-10 rounded-[10px]')
const { container: xlContainer } = render(
)
- expect(xlContainer.firstChild).toHaveClass('w-12 h-12 rounded-xl')
+ expect(xlContainer.firstChild).toHaveClass('h-12 w-12 rounded-xl')
const { container: xxlContainer } = render(
)
- expect(xxlContainer.firstChild).toHaveClass('w-14 h-14 rounded-2xl')
+ expect(xxlContainer.firstChild).toHaveClass('h-14 w-14 rounded-2xl')
})
it('applies rounded-sm class when rounded-sm=true', () => {
diff --git a/web/app/components/base/app-icon/index.tsx b/web/app/components/base/app-icon/index.tsx
index b08ac5e981..1010720e83 100644
--- a/web/app/components/base/app-icon/index.tsx
+++ b/web/app/components/base/app-icon/index.tsx
@@ -30,9 +30,9 @@ const appIconVariants = cva(
{
variants: {
size: {
- xs: 'h-4 w-4 rounded-sm text-xs',
- tiny: 'h-6 w-6 rounded-md text-base',
- small: 'h-8 w-8 rounded-lg text-xl',
+ xs: 'size-4 rounded-sm text-xs',
+ tiny: 'size-6 rounded-md text-base',
+ small: 'size-8 rounded-lg text-xl',
medium: 'h-9 w-9 rounded-[10px] text-[22px]',
large: 'h-10 w-10 rounded-[10px] text-[24px]',
xl: 'h-12 w-12 rounded-xl text-[28px]',
@@ -53,13 +53,13 @@ const EditIconWrapperVariants = cva(
{
variants: {
size: {
- xs: 'h-4 w-4 rounded-sm',
- tiny: 'h-6 w-6 rounded-md',
- small: 'h-8 w-8 rounded-lg',
+ xs: 'size-4 rounded-sm',
+ tiny: 'size-6 rounded-md',
+ small: 'size-8 rounded-lg',
medium: 'h-9 w-9 rounded-[10px]',
large: 'h-10 w-10 rounded-[10px]',
- xl: 'h-12 w-12 rounded-xl',
- xxl: 'h-14 w-14 rounded-2xl',
+ xl: 'size-12 rounded-xl',
+ xxl: 'size-14 rounded-2xl',
},
rounded: {
true: 'rounded-full',
@@ -118,7 +118,7 @@ const AppIcon: FC
= ({
>
{
isValidImageIcon
- ?
+ ?
: (innerIcon || Icon)
}
{
diff --git a/web/app/components/base/audio-btn/index.tsx b/web/app/components/base/audio-btn/index.tsx
index 999193deed..517006a31f 100644
--- a/web/app/components/base/audio-btn/index.tsx
+++ b/web/app/components/base/audio-btn/index.tsx
@@ -90,18 +90,18 @@ const AudioBtn = ({
type="button"
aria-label={tooltipContent}
disabled={audioState === 'loading'}
- className={`box-border flex h-6 w-6 cursor-pointer items-center justify-center border-none bg-transparent ${isAudition ? 'p-0.5' : 'rounded-md bg-white p-0'}`}
+ className={`box-border flex size-6 cursor-pointer items-center justify-center border-none bg-transparent ${isAudition ? 'p-0.5' : 'rounded-md bg-white p-0'}`}
onClick={handleToggle}
>
{audioState === 'loading'
? (
-
+
)
: (
-
-
+
)}
diff --git a/web/app/components/base/audio-gallery/AudioPlayer.tsx b/web/app/components/base/audio-gallery/AudioPlayer.tsx
index cb7146a8c6..c31e4aa2e8 100644
--- a/web/app/components/base/audio-gallery/AudioPlayer.tsx
+++ b/web/app/components/base/audio-gallery/AudioPlayer.tsx
@@ -249,8 +249,8 @@ const AudioPlayer: React.FC
= ({ src, srcs }) => {
@@ -260,7 +260,7 @@ const AudioPlayer: React.FC
= ({ src, srcs }) => {
-
{t('operation.audioSourceUnavailable', { ns: 'common' })}
+
{t('operation.audioSourceUnavailable', { ns: 'common' })}
)
}
diff --git a/web/app/components/base/badge/index.stories.tsx b/web/app/components/base/badge/index.stories.tsx
index b2ab794087..c6726ad173 100644
--- a/web/app/components/base/badge/index.stories.tsx
+++ b/web/app/components/base/badge/index.stories.tsx
@@ -50,7 +50,7 @@ export const CustomContent: Story = {
render: args => (
-
+
Production
diff --git a/web/app/components/base/block-input/index.tsx b/web/app/components/base/block-input/index.tsx
index acdc13b02f..a35016d688 100644
--- a/web/app/components/base/block-input/index.tsx
+++ b/web/app/components/base/block-input/index.tsx
@@ -63,7 +63,7 @@ const BlockInput: FC = ({
}, [isEditing])
const style = cn({
- 'block h-full w-full border-0 px-4 py-2 text-sm break-all text-gray-900 outline-0': true,
+ 'block size-full border-0 px-4 py-2 text-sm break-all text-gray-900 outline-0': true,
'block-input--editing': isEditing,
})
@@ -124,7 +124,7 @@ const BlockInput: FC = ({
)}
/>
@@ -184,7 +184,7 @@ const FeatureBar = ({
!hideEditEntrance && (
)
}
diff --git a/web/app/components/base/features/new-feature-panel/feature-card.tsx b/web/app/components/base/features/new-feature-panel/feature-card.tsx
index 953487352c..9d3322ecf3 100644
--- a/web/app/components/base/features/new-feature-panel/feature-card.tsx
+++ b/web/app/components/base/features/new-feature-panel/feature-card.tsx
@@ -40,7 +40,7 @@ const FeatureCard = ({
{tooltip && (
{tooltip}
diff --git a/web/app/components/base/features/new-feature-panel/feature-panel-drawer.tsx b/web/app/components/base/features/new-feature-panel/feature-panel-drawer.tsx
index 42a89a156d..19c6ff5d3f 100644
--- a/web/app/components/base/features/new-feature-panel/feature-panel-drawer.tsx
+++ b/web/app/components/base/features/new-feature-panel/feature-panel-drawer.tsx
@@ -42,10 +42,10 @@ export function FeaturePanelDrawer({
diff --git a/web/app/components/base/features/new-feature-panel/file-upload/index.tsx b/web/app/components/base/features/new-feature-panel/file-upload/index.tsx
index 9406c29aaa..2cea0e7745 100644
--- a/web/app/components/base/features/new-feature-panel/file-upload/index.tsx
+++ b/web/app/components/base/features/new-feature-panel/file-upload/index.tsx
@@ -52,7 +52,7 @@ const FileUpload = ({
-
+
)}
title={t('feature.fileUpload.title', { ns: 'appDebug' })}
@@ -91,7 +91,7 @@ const FileUpload = ({
onChange={onChange}
>
diff --git a/web/app/components/base/features/new-feature-panel/file-upload/setting-content.tsx b/web/app/components/base/features/new-feature-panel/file-upload/setting-content.tsx
index 10d83f3a8f..2ccb93257e 100644
--- a/web/app/components/base/features/new-feature-panel/file-upload/setting-content.tsx
+++ b/web/app/components/base/features/new-feature-panel/file-upload/setting-content.tsx
@@ -64,7 +64,7 @@ const SettingContent = ({
className="cursor-pointer border-none bg-transparent p-1 focus-visible:ring-1 focus-visible:ring-components-input-border-active focus-visible:outline-hidden"
onClick={onClose}
>
-