init
All checks were successful
Deploy / build (push) Successful in 46s

This commit is contained in:
alsaze 2025-11-19 21:35:40 +03:00
parent 3d975d6884
commit df79f7e58d
2 changed files with 4 additions and 10 deletions

View File

@ -8,7 +8,7 @@
:disabled="!tooltipEnabled" :disabled="!tooltipEnabled"
:ui="{ text: 'whitespace-normal break-words', content: 'max-w-50 h-auto' }" :ui="{ text: 'whitespace-normal break-words', content: 'max-w-50 h-auto' }"
> >
<span :ref="checkSize" :class="textPrimary ? 'short-text--primary' : ''">{{ text }}</span> <span :class="textPrimary ? 'short-text--primary' : ''">{{ text }}</span>
<Icon <Icon
v-if="tooltipEnabled" v-if="tooltipEnabled"
name="heroicons:information-circle" name="heroicons:information-circle"
@ -24,13 +24,13 @@
:disabled="!tooltipEnabled" :disabled="!tooltipEnabled"
:ui="{ text: 'whitespace-normal break-words', content: 'max-w-80 h-auto' }" :ui="{ text: 'whitespace-normal break-words', content: 'max-w-80 h-auto' }"
> >
<span :ref="checkSize" :class="textPrimary ? 'short-text--primary' : ''">{{ text }}</span> <span :class="textPrimary ? 'short-text--primary' : ''">{{ text }}</span>
</UTooltip> </UTooltip>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onClickOutside, unrefElement } from '@vueuse/core' import { onClickOutside } from '@vueuse/core'
defineProps<{ text: string, textPrimary?: boolean }>() defineProps<{ text: string, textPrimary?: boolean }>()
@ -43,12 +43,6 @@ const { isMobile } = useScreen()
onClickOutside(wrapper, () => { onClickOutside(wrapper, () => {
open.value = false open.value = false
}) })
function checkSize(_el: HTMLElement) {
const el = unrefElement(_el)
tooltipEnabled.value = el ? el.scrollWidth > el.clientWidth : false
}
</script> </script>
<style lang="scss"> <style lang="scss">

View File

@ -50,7 +50,7 @@ const columns = [
columnHelper.accessor('id', { columnHelper.accessor('id', {
header: 'ID', header: 'ID',
meta: { meta: {
width: '50px', width: '55px',
}, },
}), }),
columnHelper.accessor('title', { columnHelper.accessor('title', {