Changed release information layout.

This commit is contained in:
ThePendulum 2020-07-01 05:04:02 +02:00
parent 1f444e58ce
commit 6e79381937
2 changed files with 12 additions and 36 deletions

View File

@ -37,6 +37,7 @@
<a <a
v-if="release.poster" v-if="release.poster"
v-tooltip="'View poster'"
:href="`/media/${release.poster.path}`" :href="`/media/${release.poster.path}`"
:class="{ playing }" :class="{ playing }"
target="_blank" target="_blank"

View File

@ -93,13 +93,15 @@
/> />
<div class="info column"> <div class="info column">
<div class="row title-container"> <div class="row">
<h2 class="title">{{ release.title }}</h2> <h2 class="title">{{ release.title }}</h2>
</div>
<span <div
v-if="release.shootId" v-if="release.description"
class="title-shoot" class="row"
>{{ release.shootId }}</span> >
<p class="description">{{ release.description }}</p>
</div> </div>
<div <div
@ -152,15 +154,6 @@
/> />
</div> </div>
<div
v-if="release.description"
class="row"
>
<span class="row-label">Description</span>
<p class="description">{{ release.description }}</p>
</div>
<div <div
v-if="release.duration" v-if="release.duration"
class="row" class="row"
@ -194,26 +187,17 @@
class="row" class="row"
> >
<span class="row-label">Shoot #</span> <span class="row-label">Shoot #</span>
{{ release.shootId }}
<a
:href="release.url"
:title="`release.shootId`"
target="_blank"
rel="noopener noreferrer"
class="link shoot"
>{{ release.shootId }}</a>
</div> </div>
<span class="row"> <span class="row">
<span class="row-label">Added</span> <span class="row-label">Added</span>
<a <router-link
:href="`/added/${formatDate(release.dateAdded, 'YYYY-MM-DD')}`" :to="`/added/${formatDate(release.dateAdded, 'YYYY/MM/DD')}`"
:title="`Added on ${formatDate(release.dateAdded, 'MMMM D, YYYY')}`" :title="`Added on ${formatDate(release.dateAdded, 'MMMM D, YYYY')}`"
target="_blank"
rel="noopener noreferrer"
class="link added" class="link added"
>{{ formatDate(release.createdAt, 'MMMM D, YYYY HH:mm') }}</a> >{{ formatDate(release.createdAt, 'MMMM D, YYYY HH:mm') }}</router-link>
</span> </span>
</div> </div>
</div> </div>
@ -299,10 +283,6 @@ export default {
align-items: center; align-items: center;
height: 100%; height: 100%;
&:not(:last-child) {
border-right: solid 1px var(--lighten-hint);
}
&.date { &.date {
flex-shrink: 0; flex-shrink: 0;
padding: 0 2rem 0 0; padding: 0 2rem 0 0;
@ -386,11 +366,6 @@ export default {
} }
} }
.title-container {
display: flex;
justify-content: space-between;
}
.title { .title {
margin: 0; margin: 0;
} }