2 Commits

Author SHA1 Message Date
1c4bdeff0e 0.6.3
All checks were successful
Deploy to Production / deploy (push) Successful in 15s
2026-02-28 17:10:17 +00:00
35c5ff4c51 fix: ensure useFillHeight recalculates when element appears (v-if) 2026-02-28 17:09:42 +00:00
3 changed files with 11 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "tools-app",
"version": "0.6.2",
"version": "0.6.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "tools-app",
"version": "0.6.2",
"version": "0.6.3",
"dependencies": {
"lucide-vue-next": "^0.575.0",
"qrcode": "^1.5.4",

View File

@@ -1,7 +1,7 @@
{
"name": "tools-app",
"private": true,
"version": "0.6.2",
"version": "0.6.3",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,4 +1,4 @@
import { onMounted, onUnmounted, ref, nextTick } from 'vue'
import { onMounted, onUnmounted, ref, nextTick, watch } from 'vue'
import { UI_CONFIG } from '../config/ui'
export function useFillHeight(elementRef, extraMargin = 0) {
@@ -29,6 +29,13 @@ export function useFillHeight(elementRef, extraMargin = 0) {
// Also update after a short delay to ensure layout is settled (e.g. sidebar transitions)
setTimeout(updateHeight, 300)
// Watch for element appearing (v-if) or changing
watch(elementRef, () => {
nextTick(updateHeight)
// Additional update for layout stability
setTimeout(updateHeight, 100)
})
})
onUnmounted(() => {