Skip to content

Commit

Permalink
Added with arguments on images with fixes sizes in video repository (#…
Browse files Browse the repository at this point in the history
…105)

* Added with arguments on images with fixes sizes

* Please linter
  • Loading branch information
phazonoverload authored Dec 22, 2023
1 parent ee5ff3e commit ee10c8f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/Tv/TVEpisode.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<NuxtLink :to="`/tv/${show.slug}/${episode.slug}`" class="episode">
<img :src="`${directusUrl}/assets/${episode.tile}`" alt="" />
<img :src="`${directusUrl}/assets/${episode.tile}?width=300`" alt="" />
<div>
<h3>
{{ episode.episode_number }}:
Expand Down
2 changes: 1 addition & 1 deletion components/Tv/TVHero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<TVNavigation />
<BaseContainer>
<div class="featured">
<img :src="`${directusUrl}/assets/${logo}`" :alt="title" />
<img :src="`${directusUrl}/assets/${logo}?width=300`" :alt="title" />
<h2>{{ title }}</h2>
<p>{{ description }}</p>

Expand Down
2 changes: 1 addition & 1 deletion components/Tv/TVShow.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<NuxtLink :to="`/tv/${slug}`" class="show">
<img :src="`${directusUrl}/assets/${tile}`" :alt="title" />
<img :src="`${directusUrl}/assets/${tile}?width=300`" :alt="title" />
<h3>{{ title }}</h3>
</NuxtLink>
</template>
Expand Down
5 changes: 4 additions & 1 deletion pages/tv/[show]/[episode].vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
</div>
<div class="links">
<NuxtLink :to="`/tv/${route.params.show}`" class="show">
<img :src="`${directusUrl}/assets/${episode.season.show.tile}`" :alt="episode.season.show.title" />
<img
:src="`${directusUrl}/assets/${episode.season.show.tile}?width=300`"
:alt="episode.season.show.title"
/>
</NuxtLink>
<div v-if="episode.people" class="people">
<h2>People</h2>
Expand Down

0 comments on commit ee10c8f

Please sign in to comment.