Lib: Fix TeamCard colorpreview
This commit is contained in:
@ -30,10 +30,6 @@
|
|||||||
logo_template = "",
|
logo_template = "",
|
||||||
}: TeamCardProps = $props();
|
}: TeamCardProps = $props();
|
||||||
|
|
||||||
const labelwidth: string = "110px";
|
|
||||||
|
|
||||||
let colorpreview: string = $state(team?.color ?? "white");
|
|
||||||
|
|
||||||
const modalStore: ModalStore = getModalStore();
|
const modalStore: ModalStore = getModalStore();
|
||||||
if ($modalStore[0].meta) {
|
if ($modalStore[0].meta) {
|
||||||
const meta = $modalStore[0].meta;
|
const meta = $modalStore[0].meta;
|
||||||
@ -47,6 +43,10 @@
|
|||||||
banner_template = meta.banner_template;
|
banner_template = meta.banner_template;
|
||||||
logo_template = meta.logo_template;
|
logo_template = meta.logo_template;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const labelwidth: string = "110px";
|
||||||
|
|
||||||
|
let colorpreview: string = $state(team?.color ?? "white");
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Card
|
<Card
|
||||||
@ -95,9 +95,9 @@
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Color
|
Color
|
||||||
<span class="badge ml-2 border" style="color: {colorpreview}; background: {colorpreview}"
|
<span class="badge ml-2 border" style="color: {colorpreview}; background: {colorpreview}">
|
||||||
>C</span
|
C
|
||||||
>
|
</span>
|
||||||
</Input>
|
</Input>
|
||||||
|
|
||||||
<!-- Banner upload -->
|
<!-- Banner upload -->
|
||||||
|
Reference in New Issue
Block a user