Skip to content

Commit

Permalink
✨ Minor fixes and UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Oct 22, 2024
1 parent 45476cf commit 42f6d24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export default defineNuxtConfig({
short_name: "OWR",
description: "An open-source webtoon reader",
theme_color: "#020817",
display: "fullscreen",
lang: "en",
orientation: "portrait",
screenshots: [
{
src: "/screenshot.png",
Expand Down
10 changes: 5 additions & 5 deletions pages/episode/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ onMounted(async() => {

<template>
<div class="flex flex-col items-center w-full md:w-2/3 lg:w-1/2 xl:w-1/3">
<div id="header" class="flex border-[1px] border-t-0 w-full items-center justify-around">
<div id="header" class="flex border-[1px] border-t-0 w-full items-center justify-around px-8 gap-8 py-2">
<Button variant="secondary" :disabled="!episodeInfos.previousEpisodeId" @click="navigateTo(`/episode/${episodeInfos.previousEpisodeId}`, {replace: true})">
<Icon name="iconoir:arrow-left"/>
</Button>
<h3 class="m-2">{{ episodeInfos.title }}</h3>
<h3 class="m-2 grow text-center">{{ episodeInfos.title }}</h3>
<Button variant="secondary" :disabled="!episodeInfos.nextEpisodeId" @click="navigateTo(`/episode/${episodeInfos.nextEpisodeId}`, {replace: true})">
<Icon name="iconoir:arrow-right"/>
</Button>
Expand Down Expand Up @@ -129,11 +129,11 @@ onMounted(async() => {
</VisibilityObserver>
</VisibilityObserver>
</div>
<div id="footer" class="w-full flex flex-row justify-around py-4 px-8 border-[1px]">
<Button variant="secondary" :disabled="!episodeInfos.previousEpisodeId" @click="navigateTo(`/episode/${episodeInfos.previousEpisodeId}`, {replace: true})">
<div id="footer" class="w-full flex flex-row justify-around py-4 px-8 gap-8 border-[1px]">
<Button variant="secondary" class="w-full" :disabled="!episodeInfos.previousEpisodeId" @click="navigateTo(`/episode/${episodeInfos.previousEpisodeId}`, {replace: true})">
<Icon name="iconoir:arrow-left"/>
</Button>
<Button variant="secondary" :disabled="!episodeInfos.nextEpisodeId" @click="navigateTo(`/episode/${episodeInfos.nextEpisodeId}`, {replace: true})">
<Button variant="secondary" class="w-full" :disabled="!episodeInfos.nextEpisodeId" @click="navigateTo(`/episode/${episodeInfos.nextEpisodeId}`, {replace: true})">
<Icon name="iconoir:arrow-right"/>
</Button>
</div>
Expand Down

0 comments on commit 42f6d24

Please sign in to comment.