poe-svelte-ui-lib 1.2.3 → 1.2.5
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.
|
@@ -125,14 +125,8 @@
|
|
|
125
125
|
onChange={(value) => {
|
|
126
126
|
if (value === 2) {
|
|
127
127
|
component.properties.items.forEach((_item: any, index: number) => {
|
|
128
|
-
let tabWidth = Math.ceil(
|
|
129
|
-
(Math.max(...Array.from(document.body.querySelectorAll('.tab')).map((item) => (item as HTMLElement).offsetWidth)) /
|
|
130
|
-
parseFloat(getComputedStyle(document.documentElement).fontSize)) *
|
|
131
|
-
4,
|
|
132
|
-
)
|
|
133
|
-
|
|
134
128
|
const items = [...(component.properties?.items || [])]
|
|
135
|
-
items[index]['class'] = twMerge(items[index].class, `w
|
|
129
|
+
items[index]['class'] = twMerge(items[index].class, `w-1/${items.length}!`)
|
|
136
130
|
updateProperty('items', items, component, onPropertyChange)
|
|
137
131
|
})
|
|
138
132
|
} else {
|