mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 16:16:55 +00:00
컴포넌트 관련 사소한 리팩토링
This commit is contained in:
@@ -13,10 +13,11 @@
|
||||
|
||||
let {
|
||||
actionButtonIcon: ActionButtonIcon,
|
||||
actionButtonClass: actionButtonClassName,
|
||||
children,
|
||||
class: className,
|
||||
onActionButtonClick,
|
||||
onclick,
|
||||
...props
|
||||
}: Props = $props();
|
||||
</script>
|
||||
|
||||
@@ -25,7 +26,7 @@
|
||||
<div
|
||||
id="container"
|
||||
onclick={onclick && (() => setTimeout(onclick, 100))}
|
||||
class={["rounded-xl", props.class]}
|
||||
class={["rounded-xl", className]}
|
||||
>
|
||||
<div id="children" class="flex h-full items-center justify-between gap-x-4 p-2 transition">
|
||||
<div class="flex-grow overflow-x-hidden">
|
||||
@@ -40,10 +41,7 @@
|
||||
setTimeout(onActionButtonClick, 100);
|
||||
}
|
||||
}}
|
||||
class={[
|
||||
"flex-shrink-0 rounded-full p-1 text-lg active:bg-gray-100",
|
||||
props.actionButtonClass,
|
||||
]}
|
||||
class={["flex-shrink-0 rounded-full p-1 text-lg active:bg-gray-100", actionButtonClassName]}
|
||||
>
|
||||
<ActionButtonIcon />
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user