From 71d1dc1ad56b9376b46909754fa8af84af1a11d5 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sun, 16 Jan 2022 00:33:29 +0100 Subject: [PATCH] =?UTF-8?q?Dodano=20paginacj=C4=99=20listy=20poci=C4=85g?= =?UTF-8?q?=C3=B3w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TrainsView/TrainTable.vue | 95 +++++++++++++++++++++--- 1 file changed, 83 insertions(+), 12 deletions(-) diff --git a/src/components/TrainsView/TrainTable.vue b/src/components/TrainsView/TrainTable.vue index e112e46..57f74f7 100644 --- a/src/components/TrainsView/TrainTable.vue +++ b/src/components/TrainsView/TrainTable.vue @@ -5,7 +5,7 @@ -
+
{{ $t('trains.no-trains') }}
@@ -13,16 +13,17 @@
{{ $t('trains.loading') }}
- +
  • @@ -110,13 +111,14 @@ {{ displayLocoInfo(train.locoType) }}
    + - @@ -147,11 +149,33 @@
+ +
+ + << + + + + < + + + + {{ currentPage + 1 }} + + + + > + + + >> + +
@@ -582,6 +633,26 @@ img.train-image { } } +.paginator { + display: flex; + justify-content: center; + + &_item { + padding: 0.25em 0.5em; + margin: 0 0.5em; + outline: 2px solid salmon; + + text-align: center; + width: 30px; + + cursor: pointer; + + &.current { + background-color: salmon; + } + } +} + @include smallScreen() { .info-bottom { text-align: center;