refactor: centralize UI config and inject CSS variables dynamically

This commit is contained in:
2026-02-28 04:18:53 +00:00
parent d5d3d37804
commit 70d7c8873e
8 changed files with 29 additions and 22 deletions

View File

@@ -16,7 +16,7 @@ const {
stopListening
} = useExtension()
const { height: textareaHeight } = useFillHeight(textareaRef, 120)
const { height: textareaHeight } = useFillHeight(textareaRef, 40)
// Watch for clipboard updates from extension
watch(lastClipboardText, (newText) => {

View File

@@ -142,7 +142,6 @@ const generatePasswords = () => {
class="tool-textarea"
v-model="result"
placeholder="Generated passwords will appear here..."
readonly
></textarea>
</div>
</div>

View File

@@ -12,7 +12,7 @@ const format = useLocalStorage('format', 'png', 'qr-code')
const svgContent = ref('')
const previewRef = ref(null)
const { height: previewHeight } = useFillHeight(previewRef, 40) // 40px margin bottom
const { height: previewHeight } = useFillHeight(previewRef, 40) // 40px extra margin
const generateQR = async () => {
if (!text.value) {