refactor: 抽取通用样式

This commit is contained in:
2026-07-31 17:41:35 +08:00
parent b1cdafe619
commit cf1ee0e203
2 changed files with 16 additions and 4 deletions
@@ -276,7 +276,7 @@ export function ImageCanvasAssetLibraryPanelView({
label="素材批量操作"
>
<PlatformActionButton
className="col-span-3 min-h-[2.35rem]! w-full! min-w-0! max-w-full! gap-1.5! overflow-hidden! px-2! py-1.5! text-xs!"
className="image-canvas-editor__asset-batch-action col-span-3"
tone="secondary"
size="sm"
disabled={visibleAssetIds.length === 0 || isExportingSelectedAssets}
@@ -292,7 +292,7 @@ export function ImageCanvasAssetLibraryPanelView({
</span>
</PlatformActionButton>
<PlatformActionButton
className="min-h-[2.35rem]! w-full! min-w-0! max-w-full! gap-1.5! overflow-hidden! px-2! py-1.5! text-xs!"
className="image-canvas-editor__asset-batch-action"
tone="secondary"
size="sm"
disabled={selectedAssetIds.size === 0 || isExportingSelectedAssets}
@@ -302,7 +302,7 @@ export function ImageCanvasAssetLibraryPanelView({
{isExportingSelectedAssets ? '下载中' : '下载'}
</PlatformActionButton>
<PlatformActionButton
className="min-h-[2.35rem]! w-full! min-w-0! max-w-full! gap-1.5! overflow-hidden! px-2! py-1.5! text-xs!"
className="image-canvas-editor__asset-batch-action"
tone="warning"
size="sm"
disabled={selectedAssetIds.size === 0 || isExportingSelectedAssets}
@@ -312,7 +312,7 @@ export function ImageCanvasAssetLibraryPanelView({
删除
</PlatformActionButton>
<PlatformActionButton
className="min-h-[2.35rem]! w-full! min-w-0! max-w-full! gap-1.5! overflow-hidden! px-2! py-1.5! text-xs!"
className="image-canvas-editor__asset-batch-action"
tone="secondary"
size="sm"
onClick={closeAssetSelectionMode}