File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const props = withDefaults(
99 /** @default " secondary" */
1010 variant? : ' primary' | ' secondary'
1111 /** @default " medium" */
12- size? : ' small' | ' medium'
12+ size? : ' small' | ' medium' | ' square '
1313 /** Keyboard shortcut hint */
1414 ariaKeyshortcuts? : string
1515 /** Forces the button to occupy the entire width of its container. */
@@ -43,6 +43,7 @@ defineExpose({
4343 'flex': block,
4444 'text-sm px-4 py-2': size === 'medium',
4545 'text-xs px-2 py-0.5': size === 'small',
46+ 'p-1': size === 'square',
4647 'bg-transparent text-fg hover:enabled:(bg-fg/10) focus-visible:enabled:(bg-fg/10) aria-pressed:(bg-fg/10 border-fg/20 hover:enabled:(bg-fg/20 text-fg/50))':
4748 variant === 'secondary',
4849 'text-bg bg-fg hover:enabled:(bg-fg/50) focus-visible:enabled:(bg-fg/50) aria-pressed:(bg-fg text-bg border-fg hover:enabled:(text-bg/50))':
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ function getWarningTooltip(skill: SkillListItem): string | undefined {
133133 </code >
134134 <ButtonBase
135135 type =" button"
136- size =" small "
136+ size =" square "
137137 class =" absolute top-0 inset-ie-0 px-2 py-0.5 font-mono text-xs text-fg-muted bg-bg-subtle/80 border-border media-mouse:opacity-0 media-mouse:group-hover:opacity-100 media-mouse:focus-within:opacity-100 active:scale-95 focus-visible:opacity-100"
138138 :aria-label =" $t('package.get_started.copy_command')"
139139 :classicon =" copied ? 'i-lucide:check' : 'i-lucide:copy'"
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ const copyExecuteCommand = () => copyExecute(getFullExecuteCommand())
7070 >
7171 <ButtonBase
7272 type =" button"
73- size =" small "
73+ size =" square "
7474 class =" text-fg-muted bg-bg-subtle/80 border-border media-mouse:opacity-0 media-mouse:group-hover:opacity-100 media-mouse:focus-within:opacity-100 active:scale-95 focus-visible:opacity-100 select-none"
7575 :aria-label =" $t('package.get_started.copy_command')"
7676 :classicon =" executeCopied ? 'i-lucide:check' : 'i-lucide:copy'"
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ const copyDevInstallCommand = () =>
153153 >
154154 <ButtonBase
155155 type =" button"
156- size =" small "
156+ size =" square "
157157 class =" text-fg-muted bg-bg-subtle/80 border-border media-mouse:opacity-0 media-mouse:group-hover:opacity-100 media-mouse:focus-within:opacity-100 active:scale-95 focus-visible:opacity-100 select-none"
158158 :aria-label =" $t('package.get_started.copy_command')"
159159 :classicon =" copied ? 'i-lucide:check' : 'i-lucide:copy'"
@@ -185,7 +185,7 @@ const copyDevInstallCommand = () =>
185185 >
186186 <ButtonBase
187187 type =" button"
188- size =" small "
188+ size =" square "
189189 class =" text-fg-muted bg-bg-subtle/80 border-border media-mouse:opacity-0 media-mouse:group-hover:opacity-100 media-mouse:focus-within:opacity-100 active:scale-95 focus-visible:opacity-100 select-none"
190190 :aria-label =" $t('package.get_started.copy_dev_command')"
191191 :classicon =" devInstallCopied ? 'i-lucide:check' : 'i-lucide:copy'"
@@ -248,7 +248,7 @@ const copyDevInstallCommand = () =>
248248 >
249249 <ButtonBase
250250 type =" button"
251- size =" small "
251+ size =" square "
252252 class =" text-fg-muted bg-bg-subtle/80 border-border media-mouse:opacity-0 media-mouse:group-hover:opacity-100 media-mouse:focus-within:opacity-100 active:scale-95 focus-visible:opacity-100 select-none"
253253 :aria-label =" $t('package.run.copy_command')"
254254 :classicon =" runCopied ? 'i-lucide:check' : 'i-lucide:copy'"
@@ -294,7 +294,7 @@ const copyDevInstallCommand = () =>
294294 >
295295 <ButtonBase
296296 type =" button"
297- size =" small "
297+ size =" square "
298298 class =" text-fg-muted bg-bg-subtle/80 border-border media-mouse:opacity-0 media-mouse:group-hover:opacity-100 media-mouse:focus-within:opacity-100 active:scale-95 focus-visible:opacity-100 select-none"
299299 :aria-label =" $t('package.create.copy_command')"
300300 :classicon =" createCopied ? 'i-lucide:check' : 'i-lucide:copy'"
You can’t perform that action at this time.
0 commit comments