tera-system-ui 0.0.34 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -82,14 +82,13 @@
|
|
|
82
82
|
|
|
83
83
|
let openDialog = $state(false)
|
|
84
84
|
|
|
85
|
-
let flagUrl = $derived(getFlagUrl(currentLangItem.flag))
|
|
86
85
|
</script>
|
|
87
86
|
|
|
88
87
|
<!--add component here-->
|
|
89
88
|
<button onclick={() => {openDialog = true}}
|
|
90
89
|
class="h-8 flex items-center bg-neutral-token-4 text-neutral-token-9 rounded-full ps-2 pe-1 hover:bg-neutral-token-5 transition-all duration-element-react">
|
|
91
90
|
<IconLanguage class="size-icon-xs"/>
|
|
92
|
-
<img class="size-6 flag-img" src={
|
|
91
|
+
<img class="size-6 flag-img" src={currentLangItem?.flag} alt={currentLangItem?.flag}>
|
|
93
92
|
</button>
|
|
94
93
|
|
|
95
94
|
<Dialog bind:open={openDialog} class="text-neutral-token-13" size="xs" staticRender>
|
|
@@ -105,7 +104,7 @@
|
|
|
105
104
|
}}
|
|
106
105
|
data-selected={lang.code === language ? '' : undefined}>
|
|
107
106
|
<div class="flex items-center gap-2">
|
|
108
|
-
<img class="size-8 flag-img" src={getFlagUrl(lang.flag)} alt={currentLangItem
|
|
107
|
+
<img class="size-8 flag-img" src={getFlagUrl(lang.flag)} alt={currentLangItem?.flag} loading="lazy">
|
|
109
108
|
{lang.label}
|
|
110
109
|
</div>
|
|
111
110
|
<div class="check">
|