fmt
Some checks failed
CI / rust (push) Successful in 47s
CI / frontend (push) Failing after 10s
CI / wasm (push) Successful in 1m45s
CI / publish-crates (push) Successful in 23s
CI / publish-npm (push) Has been skipped

This commit is contained in:
2026-04-07 01:45:38 +03:00
parent b6aecc5f12
commit 603624724c
28 changed files with 1674 additions and 784 deletions

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { inject, watch, nextTick } from 'vue'
import { inject, watch, nextTick, type CSSProperties } from 'vue'
import type { ElementLayout, PageLayout, LayoutResult } from '../../core/layout-types'
const props = defineProps<{
@@ -231,11 +231,7 @@ watch(
<img
v-if="el.content?.type === 'image' && el.content.src"
:src="el.content.src"
:style="{
width: '100%',
height: '100%',
objectFit: el.style.objectFit || 'fill',
}"
:style="{ width: '100%', height: '100%', objectFit: (el.style.objectFit || 'fill') as CSSProperties['objectFit'] }"
/>
<div v-else class="layout-el__placeholder">Görsel</div>
</div>

View File

@@ -45,6 +45,7 @@ export type ResolvedContent =
| { type: 'checkbox'; checked: boolean }
| { type: 'rich_text'; spans: ResolvedRichSpan[] }
| { type: 'table'; headers: TableHeaderCell[]; rows: TableCell[][]; column_widths_mm: number[] }
| { type: 'chart'; svg: string }
export interface TableHeaderCell {
text: string