From 3941b1d86edc4543142428e737b17da63b4d56aa Mon Sep 17 00:00:00 2001
From: Kavin <20838718+FireMasterK@users.noreply.github.com>
Date: Fri, 24 Jun 2022 23:28:06 +0100
Subject: [PATCH] Use windicss classes.
---
src/components/ChaptersBar.vue | 24 +++++++-----------------
1 file changed, 7 insertions(+), 17 deletions(-)
diff --git a/src/components/ChaptersBar.vue b/src/components/ChaptersBar.vue
index 4f233c3e..fa82a257 100644
--- a/src/components/ChaptersBar.vue
+++ b/src/components/ChaptersBar.vue
@@ -20,10 +20,10 @@
-
![]()
+
-
+
@@ -34,32 +34,22 @@
height: 5px;
}
.chapter {
- @apply cursor-pointer;
- align-self: center;
- padding: 10px;
+ @apply cursor-pointer self-center p-2.5;
img {
- width: 100%;
- height: 100%;
+ @apply w-full h-full;
}
}
.chapter-vertical {
- @apply cursor-pointer;
- align-self: center;
- padding: 10px;
+ @apply cursor-pointer self-center p-2.5;
img {
- width: 30%;
- height: 30%;
+ @apply w-3/10 h-3/10;
}
}
.chapter-vertical:hover {
@apply bg-gray-500;
}
.text-truncate {
- white-space: nowrap;
- width: 10em;
- overflow: hidden;
- text-overflow: ellipsis;
- display: inline-block;
+ @apply truncate overflow-hidden inline-block w-10em;
}