refactor: 抽取通用样式
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -4138,6 +4138,18 @@ html[data-mobile-keyboard-open='true'] .platform-mobile-bottom-dock {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.image-canvas-editor__asset-batch-action {
|
||||
width: 100% !important;
|
||||
min-width: 0 !important;
|
||||
max-width: 100% !important;
|
||||
min-height: 2.35rem !important;
|
||||
gap: 0.375rem !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0.375rem 0.5rem !important;
|
||||
font-size: 0.75rem !important;
|
||||
line-height: 1rem !important;
|
||||
}
|
||||
|
||||
.image-canvas-editor__asset-folder {
|
||||
display: grid;
|
||||
gap: 0.45rem;
|
||||
|
||||
Reference in New Issue
Block a user