JobDetails: Style preview container

* Limit preview container size to 16:9 aspect ratio.
* Use `-small` size of the last-rendered image, tiny is too small.
This commit is contained in:
Pablo Vazquez 2022-07-07 15:34:30 +02:00
parent 5501f86215
commit 5ff5a4f141
2 changed files with 30 additions and 1 deletions

View File

@ -497,4 +497,30 @@ span.state-transition-arrow.lazy {
max-height: 100%;
max-width: 100%;
}
.preview-container {
align-items: center;
background-color: var(--color-background);
border-radius: var(--border-radius);
display: flex;
height: 0;
justify-content: center;
overflow: hidden;
padding-top: 56.25%;
position: relative;
}
.preview-container div:first-child {
align-items: center;
display: flex;
height: 100%;
justify-content: center;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.preview-container img {
max-height: 100%;
max-width: 100%;
}

View File

@ -1,6 +1,9 @@
<template>
<template v-if="hasJobData">
<last-rendered-image ref="lastRenderedImage" :jobID="jobData.id" thumbnailSuffix="-tiny" />
<div class="preview-container">
<last-rendered-image ref="lastRenderedImage" :jobID="jobData.id" thumbnailSuffix="-small" />
</div>
<TabsWrapper @clicked-job-details-tab="$emit('reshuffled')">
<TabItem title="Job Settings">
<dl v-if="hasSettings">