ketekny-ui-kit 1.0.112 → 1.0.113

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ketekny-ui-kit",
3
3
  "type": "module",
4
- "version": "1.0.112",
4
+ "version": "1.0.113",
5
5
  "description": "A Vue 3 UI component library with Tailwind CSS styling",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -91,7 +91,7 @@ export default {
91
91
  this.showLabelTooltip = false
92
92
  return
93
93
  }
94
- this.showLabelTooltip = labelEl.scrollWidth > labelEl.clientWidth
94
+ this.showLabelTooltip = labelEl.scrollWidth - labelEl.clientWidth > 2
95
95
  },
96
96
  handleClick() {
97
97
  if (this.hasChildren && !this.isCollapsedTop) {
@@ -161,9 +161,15 @@ export default {
161
161
 
162
162
  <template v-if="!isCollapsedTop">
163
163
  <span
164
+ v-if="showLabelTooltip"
165
+ ref="labelText"
166
+ class="flex-1 truncate"
167
+ v-tooltip.right="item.label"
168
+ >{{ item.label }}</span>
169
+ <span
170
+ v-else
164
171
  ref="labelText"
165
172
  class="flex-1 truncate"
166
- v-tooltip.right="showLabelTooltip ? item.label : null"
167
173
  >{{ item.label }}</span>
168
174
 
169
175
  <span