Skip to content

Commit

Permalink
fix(/anime and /manga): rearrange images
Browse files Browse the repository at this point in the history
  • Loading branch information
Jabster28 committed Sep 11, 2020
1 parent f57afbf commit 333a5bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
20 changes: 11 additions & 9 deletions src/pages/Anime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,9 @@
$q.screen.width > 800 ? 'row' : 'col'
]"
>
<div class="col-3">
<q-img :src="anime.image_url" />
<div
v-if="anime.trailer_url"
id="player"
data-plyr-provider="youtube"
class="q-ma-lg"
:data-plyr-embed-id="anime.trailer_url"
></div>
<div class="q-ma-xl col-2">
<img :src="anime.image_url" />
<br />
<q-btn
rel="noopener"
class="q-ma-sm"
Expand Down Expand Up @@ -114,6 +108,14 @@
</div>
</q-card>
</div>
<div v-if="anime.trailer_url" class="col-3">
<div
id="player"
data-plyr-provider="youtube"
class="q-ma-lg"
:data-plyr-embed-id="anime.trailer_url"
></div>
</div>
<div v-if="sugg.length > 0" class="col-10">
<h3 disabled>More like this</h3>
<q-scroll-area horizontal class="q-ma-md" style="height: 400px;">
Expand Down
7 changes: 4 additions & 3 deletions src/pages/Manga.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
$q.screen.width > 800 ? 'row' : 'col'
]"
>
<div class="col-3">
<q-img :src="manga.image_url" />
<div class="col-2">
<img :src="manga.image_url" />
<br />
<q-btn
rel="noopener"
class="q-ma-sm"
Expand All @@ -28,7 +29,7 @@
Open in MAL</q-btn
>
</div>
<div class="col-5">
<div class="col-7">
<h2>{{ manga.title }}</h2>

<h6 class="disabled">{{ manga.title_english }}</h6>
Expand Down

0 comments on commit 333a5bf

Please sign in to comment.