v0.1.52 - handoff 정리와 이월 배지 보정
This commit is contained in:
@@ -29,6 +29,10 @@ const emit = defineEmits(['dismiss'])
|
||||
const open = ref(false)
|
||||
const rootRef = ref(null)
|
||||
|
||||
function isCompactButtonLabel() {
|
||||
return String(props.buttonLabel || '').trim().length <= 1
|
||||
}
|
||||
|
||||
function close() {
|
||||
open.value = false
|
||||
}
|
||||
@@ -71,7 +75,8 @@ onBeforeUnmount(() => {
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
class="flex h-5 w-5 items-center justify-center rounded-full border border-stone-300 bg-white text-[10px] font-bold text-stone-500 transition hover:border-stone-500 hover:text-stone-900 focus-visible:ring-2 focus-visible:ring-stone-900 focus-visible:ring-offset-2"
|
||||
class="inline-flex min-w-[22px] items-center justify-center border border-stone-300 bg-white text-[10px] font-bold text-stone-500 transition hover:border-stone-500 hover:text-stone-900 focus-visible:ring-2 focus-visible:ring-stone-900 focus-visible:ring-offset-2"
|
||||
:class="isCompactButtonLabel() ? 'h-5 w-5 rounded-full' : 'min-h-[22px] rounded-full px-2 py-1 leading-none'"
|
||||
aria-label="가이드 보기"
|
||||
:aria-expanded="open"
|
||||
@click.stop="toggle"
|
||||
|
||||
Reference in New Issue
Block a user