ui: use native IconCopySmall24 to match size/weight of sibling icon buttons
This commit is contained in:
1 parent
fd12df7d39
commit
84a89cd4b6
1 file changed
+2
-8
+2
-8
@@ -9,6 +9,7 @@ import {
|
|||||||
IconExpand24,
|
IconExpand24,
|
||||||
IconCollapse24,
|
IconCollapse24,
|
||||||
IconCheck24,
|
IconCheck24,
|
||||||
|
IconCopySmall24,
|
||||||
useWindowResize
|
useWindowResize
|
||||||
} from '@create-figma-plugin/ui'
|
} from '@create-figma-plugin/ui'
|
||||||
import { emit, on } from '@create-figma-plugin/utilities'
|
import { emit, on } from '@create-figma-plugin/utilities'
|
||||||
@@ -171,14 +172,7 @@ function Plugin () {
|
|||||||
title="Копировать значения переменных"
|
title="Копировать значения переменных"
|
||||||
onClick={copyInfo}
|
onClick={copyInfo}
|
||||||
>
|
>
|
||||||
{copied
|
{copied ? <IconCheck24 /> : <IconCopySmall24 />}
|
||||||
? <IconCheck24 />
|
|
||||||
: (
|
|
||||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<rect x="9" y="9" width="13" height="13" rx="2" ry="2" />
|
|
||||||
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" />
|
|
||||||
</svg>
|
|
||||||
)}
|
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton
|
<IconButton
|
||||||
title={isMaximized ? 'Свернуть окно' : 'Развернуть окно'}
|
title={isMaximized ? 'Свернуть окно' : 'Развернуть окно'}
|
||||||
|
|||||||
Reference in new issue
Block a user