Files
portal/app/resources/js/components/ui/Kbd.vue
T
Дмитрий cb05657f30 chore(format): prettier --write across 37 .vue/.ts files
Phase 1B audit found 48 files failing `prettier --check`. Auto-apply
via `npx prettier --write resources/js/**/*.{ts,vue,css}` produced
style-only changes:
- consistent quote style
- trailing comma normalization
- spaces around : in v-card style="position: relative" attrs
- explicit ; insertion

No semantic changes. No code-behavior changes. Production-code only;
test files batched separately into `test(frontend):` commit.

Verification:
- npx vitest run → 79/79 files, 614/614 + 3 skipped (no regression).
- npx vue-tsc --noEmit → 0 errors.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 20:24:33 +03:00

29 lines
626 B
Vue

<script setup lang="ts">
defineProps<{ dark?: boolean }>();
</script>
<template>
<kbd class="ld-kbd" :class="{ 'ld-kbd--dark': dark }">
<slot />
</kbd>
</template>
<style scoped>
.ld-kbd {
font-family: 'JetBrains Mono', ui-monospace, monospace;
font-size: 10px;
padding: 1px 6px;
border-radius: 4px;
background: rgba(1, 32, 25, 0.06);
color: var(--liderra-muted);
border: 1px solid var(--liderra-line);
line-height: 1.4;
}
.ld-kbd--dark {
background: rgba(255, 255, 255, 0.08);
color: rgba(232, 226, 212, 0.85);
border-color: rgba(255, 255, 255, 0.1);
}
</style>