diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 0577f1d4..3af1fe11 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "اشتراكات اللوحات", "chain_ticker": "رمز السلسلة", "enable_infinite_scroll": "تفعيل التمرير اللانهائي", - "prev": "السابق", + "previous": "السابق", "next": "التالي", "bottom": "أسفل", "enable_infinite_scroll_tip": "لا ينطبق على اللوحات المتعددة، التي تستخدم التمرير اللانهائي دائماً.", diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index ada1aa8a..6d6a64ce 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "বোর্ড সাবস্ক্রিপশন", "chain_ticker": "চেইন টিকার", "enable_infinite_scroll": "অসীম স্ক্রল সক্ষম করুন", - "prev": "পূর্ববর্তী", + "previous": "পূর্ববর্তী", "next": "পরবর্তী", "bottom": "নিচ", "enable_infinite_scroll_tip": "মাল্টিবোর্ডে প্রযোজ্য নয়, যা সবসময় অসীম স্ক্রল ব্যবহার করে।", diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 0ea8c904..3ce2cb71 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Odběry desek", "chain_ticker": "ticker řetězce", "enable_infinite_scroll": "Povolit nekonečné posouvání", - "prev": "Předchozí", + "previous": "Předchozí", "next": "Další", "bottom": "Dole", "enable_infinite_scroll_tip": "Netýká se multidesek, které vždy používají nekonečné posouvání.", diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 727604a6..061d5b0d 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "opslagstavleabonnementer", "chain_ticker": "kæde-ticker", "enable_infinite_scroll": "Aktiver uendelig rulning", - "prev": "Forrige", + "previous": "Forrige", "next": "Næste", "bottom": "Bund", "enable_infinite_scroll_tip": "Gælder ikke for multiboard, som altid bruger uendelig scroll.", diff --git a/public/translations/de/default.json b/public/translations/de/default.json index f54d38f0..c0d5ecd6 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Board-Abonnements", "chain_ticker": "Chain-Ticker", "enable_infinite_scroll": "Unendliches Scrollen aktivieren", - "prev": "Zurück", + "previous": "Zurück", "next": "Weiter", "bottom": "Unten", "enable_infinite_scroll_tip": "Gilt nicht für Multiboards, die immer Endlos-Scrolling verwenden.", diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 3e27ec6f..2aa1602a 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Συνδρομές σε πίνακες", "chain_ticker": "σύμβολο αλυσίδας", "enable_infinite_scroll": "Ενεργοποίηση άπειρου κύλισης", - "prev": "Προηγ", + "previous": "Προηγ", "next": "Επόμενο", "bottom": "Κάτω", "enable_infinite_scroll_tip": "Δεν ισχύει για τους πολυπίνακες, που χρησιμοποιούν πάντα την ατελείωτη κύλιση.", diff --git a/public/translations/en/default.json b/public/translations/en/default.json index a067070d..d8d555a4 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -19,6 +19,7 @@ "close_post_form": "Close Post Form", "catalog": "Catalog", "all": "All", + "archive": "Archive", "subscriptions": "Subscriptions", "board_subscriptions": "Board subscriptions", "board": "Board", @@ -271,7 +272,7 @@ "media_hosting_preferred_failure_guidance": "If your preferred provider fails, the app will try other providers (Random mode) or show an error (Preferred mode).", "media_hosting_all_providers_failed_guidance": "All upload providers failed. Try again or paste a link manually.", "enable_infinite_scroll": "Enable infinite scroll", - "prev": "Prev", + "previous": "Previous", "next": "Next", "pagination.pageCurrent": "Page {{page}} (current)", "enable_infinite_scroll_tip": "Does not apply to multiboards, which always use infinite scroll.", diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 5162904f..052a9dad 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Suscripciones a tableros", "chain_ticker": "ticker de cadena", "enable_infinite_scroll": "Activar desplazamiento infinito", - "prev": "Anterior", + "previous": "Anterior", "next": "Siguiente", "bottom": "Abajo", "enable_infinite_scroll_tip": "No aplica a los multiboard, que siempre usan scroll infinito.", diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index e378a318..812d54b3 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "اشتراک‌های تابلو", "chain_ticker": "نماد زنجیره", "enable_infinite_scroll": "فعال کردن اسکرول بی‌نهایت", - "prev": "قبلی", + "previous": "قبلی", "next": "بعدی", "bottom": "پایین", "enable_infinite_scroll_tip": "برای تابلوهای چندگانه اعمال نمی‌شود، که همیشه از اسکرول بی‌نهایت استفاده می‌کنند.", diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index c7d5e783..ab291de3 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Alustojen tilaukset", "chain_ticker": "ketjumerkki", "enable_infinite_scroll": "Ota ääretön vieritys käyttöön", - "prev": "Edell.", + "previous": "Edell.", "next": "Seuraava", "bottom": "Pohja", "enable_infinite_scroll_tip": "Ei koske monilautalistauksia, jotka aina käyttävät ääretöntä vieritystä.", diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 932b0ee8..097ea00d 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Mga subscription sa board", "chain_ticker": "chain ticker", "enable_infinite_scroll": "Paganahin ang walang hanggang scroll", - "prev": "Nakaraan", + "previous": "Nakaraan", "next": "Susunod", "bottom": "Ibaba", "enable_infinite_scroll_tip": "Hindi naaangkop sa mga multiboard, na palaging gumagamit ng walang hanggang scroll.", diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 41286407..958f5b12 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Abonnements aux tableaux", "chain_ticker": "ticker de chaîne", "enable_infinite_scroll": "Activer le défilement infini", - "prev": "Précédent", + "previous": "Précédent", "next": "Suivant", "bottom": "Bas", "enable_infinite_scroll_tip": "Ne s'applique pas aux multiboards, qui utilisent toujours le défilement infini.", diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 8155cf5f..ce6e8cd1 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "מנויים ללוחות", "chain_ticker": "טיקר שרשרת", "enable_infinite_scroll": "הפעל גלילה אינסופית", - "prev": "הקודם", + "previous": "הקודם", "next": "הבא", "bottom": "תחתית", "enable_infinite_scroll_tip": "לא חל על לוחות מרובים, שתמיד משתמשים בגלילה אינסופית.", diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 1efb2835..df5f768c 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "बोर्ड सदस्यता", "chain_ticker": "श्रृंखला टिकर", "enable_infinite_scroll": "अनंत स्क्रॉल सक्षम करें", - "prev": "पिछला", + "previous": "पिछला", "next": "अगला", "bottom": "नीचे", "enable_infinite_scroll_tip": "मल्टीबोर्ड पर लागू नहीं होता, जो हमेशा अनंत स्क्रॉल का उपयोग करते हैं।", diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index d72b0229..8e94f1ed 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Fórum feliratkozások", "chain_ticker": "lánc ticker", "enable_infinite_scroll": "Végtelen görgetés engedélyezése", - "prev": "Előző", + "previous": "Előző", "next": "Következő", "bottom": "Alul", "enable_infinite_scroll_tip": "A többtáblás nézetekre nem vonatkozik, amelyek mindig végtelen görgetést használnak.", diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 29be92f9..d0825594 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Langganan papan", "chain_ticker": "ticker rantai", "enable_infinite_scroll": "Aktifkan scroll tak terbatas", - "prev": "Sebelumnya", + "previous": "Sebelumnya", "next": "Berikutnya", "bottom": "Bawah", "enable_infinite_scroll_tip": "Tidak berlaku untuk papan ganda, yang selalu menggunakan scroll tak terbatas.", diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 973bae69..e2bfeeb4 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Iscrizioni alle bacheche", "chain_ticker": "ticker di catena", "enable_infinite_scroll": "Abilita scorrimento infinito", - "prev": "Prec.", + "previous": "Prec.", "next": "Avanti", "bottom": "In basso", "enable_infinite_scroll_tip": "Non si applica ai multiboard, che usano sempre lo scroll infinito.", diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 6e964ada..90dc7c0c 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "掲示板の購読", "chain_ticker": "チェーンチッカー", "enable_infinite_scroll": "無限スクロールを有効にする", - "prev": "前へ", + "previous": "前へ", "next": "次へ", "bottom": "下", "enable_infinite_scroll_tip": "マルチボードには適用されません。マルチボードは常に無限スクロールを使用します。", diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 213f163a..a27f8e6e 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "보드 구독", "chain_ticker": "체인 티커", "enable_infinite_scroll": "무한 스크롤 활성화", - "prev": "이전", + "previous": "이전", "next": "다음", "bottom": "아래", "enable_infinite_scroll_tip": "항상 무한 스크롤을 사용하는 멀티보드에는 적용되지 않습니다.", diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index c04483d1..cef0bb8c 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "बोर्ड सदस्यता", "chain_ticker": "चेन टिकर", "enable_infinite_scroll": "अनंत स्क्रोल सक्षम करा", - "prev": "मागील", + "previous": "मागील", "next": "पुढे", "bottom": "तळ", "enable_infinite_scroll_tip": "मल्टीबोर्डवर लागू होत नाही, जे नेहमी अंतहीन स्क्रॉल वापरतात.", diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index c20dfd9f..aaaa5392 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Boardabonnementen", "chain_ticker": "kettingticker", "enable_infinite_scroll": "Oneindig scrollen inschakelen", - "prev": "Vorige", + "previous": "Vorige", "next": "Volgende", "bottom": "Onder", "enable_infinite_scroll_tip": "Geldt niet voor multiboards, die altijd oneindig scrollen gebruiken.", diff --git a/public/translations/no/default.json b/public/translations/no/default.json index a3c4d41c..49d3a8da 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Brettabonnementer", "chain_ticker": "kjede-ticker", "enable_infinite_scroll": "Aktiver uendelig rulling", - "prev": "Forrige", + "previous": "Forrige", "next": "Neste", "bottom": "Bunn", "enable_infinite_scroll_tip": "Gjelder ikke for multiboard, som alltid bruker uendelig scroll.", diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 589b9922..48d3807d 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Subskrypcje tablic", "chain_ticker": "ticker łańcucha", "enable_infinite_scroll": "Włącz nieskończone przewijanie", - "prev": "Poprz.", + "previous": "Poprz.", "next": "Dalej", "bottom": "Dół", "enable_infinite_scroll_tip": "Nie dotyczy multiboardów, które zawsze używają nieskończonego przewijania.", diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index fbff48c4..5bd352ae 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Assinaturas de quadros", "chain_ticker": "ticker da cadeia", "enable_infinite_scroll": "Ativar rolagem infinita", - "prev": "Anterior", + "previous": "Anterior", "next": "Próximo", "bottom": "Inferior", "enable_infinite_scroll_tip": "Não se aplica a multiboard, que sempre usam rolagem infinita.", diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 304478b3..203d3469 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Abonamente la panouri", "chain_ticker": "ticker lanț", "enable_infinite_scroll": "Activează derularea infinită", - "prev": "Anterior", + "previous": "Anterior", "next": "Următorul", "bottom": "Jos", "enable_infinite_scroll_tip": "Nu se aplică la multiboard-urile, care folosesc întotdeauna defilarea infinită.", diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 52ab8f7d..05c47457 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Подписки на доски", "chain_ticker": "тикер блокчейна", "enable_infinite_scroll": "Включить бесконечную прокрутку", - "prev": "Пред.", + "previous": "Пред.", "next": "Далее", "bottom": "Вниз", "enable_infinite_scroll_tip": "Не применяется к мультибордам, которые всегда используют бесконечную прокрутку.", diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 60ae455a..04e92744 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Abonime në tabela", "chain_ticker": "simboli i zinxhirit", "enable_infinite_scroll": "Aktivizo rrëshqitjen e pafundme", - "prev": "Paraprake", + "previous": "Paraprake", "next": "Tjetra", "bottom": "Poshtë", "enable_infinite_scroll_tip": "Nuk aplikohet për multiboard-et, që gjithmonë përdorin rrëshqitje të pafundme.", diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 2c8fada2..dab86a31 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Brädeabonnemang", "chain_ticker": "kedjeticker", "enable_infinite_scroll": "Aktivera oändlig scrollning", - "prev": "Föreg.", + "previous": "Föreg.", "next": "Nästa", "bottom": "Botten", "enable_infinite_scroll_tip": "Gäller inte multiboard, som alltid använder oändlig scroll.", diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 89a0e76e..04667948 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "బోర్డ్ సబ్‌స్క్రిప్షన్లు", "chain_ticker": "చైన్ టికర్", "enable_infinite_scroll": "అనంత స్క్రోల్ చేతనం చేయండి", - "prev": "మునుపటి", + "previous": "మునుపటి", "next": "తదుపరి", "bottom": "క్రింద", "enable_infinite_scroll_tip": "మల్టీబోర్డ్‌లకు వర్తించదు, అవి ఎల్లప్పుడూ అనంత స్క్రాల్ ఉపయోగిస్తాయి.", diff --git a/public/translations/th/default.json b/public/translations/th/default.json index d6713814..7647eba8 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "การสมัครสมาชิกบอร์ด", "chain_ticker": "สัญลักษณ์เชน", "enable_infinite_scroll": "เปิดใช้งานการเลื่อนแบบไม่จำกัด", - "prev": "ก่อนหน้า", + "previous": "ก่อนหน้า", "next": "ถัดไป", "bottom": "ล่าง", "enable_infinite_scroll_tip": "ไม่ใช้กับมัลติบอร์ด ซึ่งใช้การเลื่อนแบบไม่สิ้นสุดเสมอ", diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index a846b3fa..2aeb9962 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Pano abonelikleri", "chain_ticker": "zincir ticker'ı", "enable_infinite_scroll": "Sonsuz kaydırmayı etkinleştir", - "prev": "Önceki", + "previous": "Önceki", "next": "İleri", "bottom": "Alt", "enable_infinite_scroll_tip": "Her zaman sonsuz kaydırma kullanan çoklu panolar için geçerli değildir.", diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 204bf720..f5a2587b 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Підписки на дошки", "chain_ticker": "тикер ланцюга", "enable_infinite_scroll": "Увімкнути нескінченну прокрутку", - "prev": "Попередн.", + "previous": "Попередн.", "next": "Далі", "bottom": "Вниз", "enable_infinite_scroll_tip": "Не застосовується до мультибордів, які завжди використовують нескінченне прокручування.", diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 0fc25f7f..f26db717 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "بورڈ سبسکرپشنز", "chain_ticker": "چین ٹکر", "enable_infinite_scroll": "لامحدود سکرول فعال کریں", - "prev": "پچھلا", + "previous": "پچھلا", "next": "اگلا", "bottom": "نیچے", "enable_infinite_scroll_tip": "ملٹی بورڈز پر لاگو نہیں ہوتا، جو ہمیشہ لامحدود سکرول استعمال کرتے ہیں۔", diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index d01e0c47..ddd559eb 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "Đăng ký bảng", "chain_ticker": "mã chuỗi", "enable_infinite_scroll": "Bật cuộn vô hạn", - "prev": "Trước", + "previous": "Trước", "next": "Tiếp theo", "bottom": "Dưới cùng", "enable_infinite_scroll_tip": "Không áp dụng cho đa bảng, luôn sử dụng cuộn vô hạn.", diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 8ca6312f..e599aa50 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -269,7 +269,7 @@ "board_subscriptions": "板块订阅", "chain_ticker": "链代币符号", "enable_infinite_scroll": "启用无限滚动", - "prev": "上一页", + "previous": "上一页", "next": "下一页", "bottom": "底部", "enable_infinite_scroll_tip": "不适用于多板视图,后者始终使用无限滚动。", diff --git a/src/components/board-pagination/board-pagination.module.css b/src/components/board-pagination/board-pagination.module.css index c5ae676e..703356f5 100644 --- a/src/components/board-pagination/board-pagination.module.css +++ b/src/components/board-pagination/board-pagination.module.css @@ -35,20 +35,75 @@ color: var(--button-desktop-text-color-hover); } -/* Footer-style compact pagination (layout in footer-first-row.module.css) */ +.pagelist { + display: flex; + align-items: center; + flex-wrap: wrap; + margin: 0; + padding: 3px 7px !important; + overflow: hidden; + list-style: none; + background-color: var(--pagelist-background-color); +} + +.footerNavPlain { + font: inherit; + margin: 0; + padding: 0; + border: none; + background: none; + cursor: pointer; + text-decoration: none; + color: inherit; +} + +.footerNavPlain:hover { + text-decoration: none; +} + +.footerNavPlainDisabled { + font: inherit; + margin: 0; + padding: 0; + border: none; + background: none; + opacity: 0.5; + cursor: default; + color: inherit; +} + +.footerPageLink, +.footerPageCurrent { + font-size: 13px; + margin: 0; + padding: 3px 2px; + border: none; + background: transparent; + list-style: none; + overflow: hidden; + color: var(--pagelist-item-text-color, #89a); +} + .footerPageLink { - padding: 2px 6px; - font-size: 12px; + all: unset; + display: inline-block; + font-size: 13px; + margin: 0; + padding: 3px 2px; + border: none; + background: transparent; + color: var(--pagelist-item-text-color, #89a); + text-transform: capitalize; + cursor: pointer; text-decoration: var(--button-text-decoration); - color: var(--button-desktop-text-color); } .footerPageLink:hover { - color: var(--button-desktop-text-color-hover); + color: var(--pagelist-item-text-color-hover, #d00); text-decoration: var(--button-text-decoration); } .footerPageCurrent { font-weight: bold; - color: var(--button-desktop-text-color-hover); + color: var(--pagelist-item-text-color-current, #000); } diff --git a/src/components/board-pagination/board-pagination.tsx b/src/components/board-pagination/board-pagination.tsx index 1cad3230..29b2ce92 100644 --- a/src/components/board-pagination/board-pagination.tsx +++ b/src/components/board-pagination/board-pagination.tsx @@ -8,7 +8,7 @@ export interface BoardPaginationProps { basePath: string; currentPage: number; totalPages: number; - /** When true, renders compact footer-style row with [1] [2] ... [10] Next Catalog + Style select */ + /** When true, renders pagelist: [All] [1] [2] ... [10] Catalog Archive + Style select */ footerStyle?: boolean; } @@ -26,41 +26,43 @@ const BoardPagination = ({ basePath, currentPage, totalPages, footerStyle = fals if (footerStyle) { const pageNumbers = Array.from({ length: totalPages }, (_, i) => i + 1); - const ellipsisThreshold = 7; - const showEllipsis = totalPages > ellipsisThreshold; - const visiblePages = showEllipsis ? [1, 2, currentPage, totalPages].filter((p, i, arr) => arr.indexOf(p) === i).sort((a, b) => a - b) : pageNumbers; + const archiveHref = `${basePath}/archive`; return (
-
- {visiblePages.map((page, idx) => { - const isCurrent = page === currentPage; - const prevPage = visiblePages[idx - 1]; - const showLeadingEllipsis = showEllipsis && prevPage !== undefined && page - prevPage > 1; - return ( - - {showLeadingEllipsis && ... } - {isCurrent ? ( - [{page}] - ) : ( - - [{page}] - - )} +
+ {currentPage > 1 && ( + + {t('previous')} + + )} + + [{t('all')}] + + {pageNumbers.map((page) => + page === currentPage ? ( + + [{page}] - ); - })} - {nextHref && ( - <> - {' '} - - {t('next')} + ) : ( + + [{page}] - - )}{' '} + ), + )} + {currentPage < totalPages ? ( + + {t('next')} + + ) : ( + {t('next')} + )} {t('catalog')} + + {t('archive')} +
{t('style')}: @@ -75,12 +77,12 @@ const BoardPagination = ({ basePath, currentPage, totalPages, footerStyle = fals return (
{prevHref ? ( - - {t('prev')} + + {t('previous')} ) : ( - {t('prev')} + {t('previous')} )} {pageNumbers.map((page) => { diff --git a/src/components/footer/footer.tsx b/src/components/footer/footer.tsx index ceaf07a5..c47fd71d 100644 --- a/src/components/footer/footer.tsx +++ b/src/components/footer/footer.tsx @@ -24,7 +24,6 @@ export const PageFooterDesktop = ({ firstRow, styleRow }: PageFooterDesktopProps