Harden workstation UX and seed placeholder scans after Playwright QA.
Fix mobile queue navigation, draft/loading states, and Intake overflow; seed MinIO demo PDFs so document viewing does not 500; add e2e smoke coverage.
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
<iframe
|
||||
v-if="isPdf"
|
||||
:src="url"
|
||||
class="scan-page w-[800px] h-[1100px] bg-white"
|
||||
class="scan-page w-full max-w-[800px] aspect-[8/11] h-auto sm:w-[800px] sm:h-[1100px] sm:aspect-auto bg-white"
|
||||
frameborder="0"
|
||||
title="Scanned document"
|
||||
/>
|
||||
@@ -132,6 +132,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, watch, nextTick } from 'vue'
|
||||
import { useResizeObserver } from '@vueuse/core'
|
||||
import SkeletonBlock from './SkeletonBlock.vue'
|
||||
import InlineError from './InlineError.vue'
|
||||
import EmptyState from './EmptyState.vue'
|
||||
@@ -242,6 +243,12 @@ watch(
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
useResizeObserver(viewerContainer, () => {
|
||||
if (props.url && !props.loading && !props.error) {
|
||||
fitWidth()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user