summaryrefslogtreecommitdiffstats
path: root/src/components/PaginationCursor
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/PaginationCursor')
-rw-r--r--src/components/PaginationCursor/PaginationCursor.module.scss11
-rw-r--r--src/components/PaginationCursor/PaginationCursor.tsx18
2 files changed, 19 insertions, 10 deletions
diff --git a/src/components/PaginationCursor/PaginationCursor.module.scss b/src/components/PaginationCursor/PaginationCursor.module.scss
index 17e46ac..542584c 100644
--- a/src/components/PaginationCursor/PaginationCursor.module.scss
+++ b/src/components/PaginationCursor/PaginationCursor.module.scss
@@ -1,12 +1,14 @@
@use "@styles/abstracts/functions" as fun;
.wrapper {
- margin: var(--spacing-sm) auto var(--spacing-md);
width: max-content;
+ margin: var(--spacing-sm) auto var(--spacing-md);
+ text-align: center;
.bar[value] {
display: block;
- width: 30ch;
+ width: clamp(25ch, 20vw, 30ch);
+ max-width: 100%;
height: fun.convert-px(13);
appearance: none;
background: var(--color-bg-tertiary);
@@ -34,3 +36,8 @@
}
}
}
+
+.info {
+ margin-bottom: var(--spacing-2xs);
+ font-size: var(--font-size-sm);
+}
diff --git a/src/components/PaginationCursor/PaginationCursor.tsx b/src/components/PaginationCursor/PaginationCursor.tsx
index a8c6265..3b0c15f 100644
--- a/src/components/PaginationCursor/PaginationCursor.tsx
+++ b/src/components/PaginationCursor/PaginationCursor.tsx
@@ -12,6 +12,16 @@ const PaginationCursor = ({
return (
<div className={styles.wrapper}>
+ <div className={styles.info}>
+ {intl.formatMessage(
+ {
+ defaultMessage:
+ '{articlesCount, plural, =0 {# loaded articles} one {# loaded article} other {# loaded articles}} out of a total of {total}',
+ description: 'PaginationCursor: loaded articles count message',
+ },
+ { articlesCount: current, total }
+ )}
+ </div>
<progress
className={styles.bar}
max={total}
@@ -23,14 +33,6 @@ const PaginationCursor = ({
'Number of articles loaded out of the total available.',
description: 'PaginationCursor: loaded articles count aria-label',
})}
- title={intl.formatMessage(
- {
- defaultMessage:
- '{articlesCount, plural, =0 {# articles} one {# article} other {# articles}} out of a total of {total}',
- description: 'PaginationCursor: loaded articles count message',
- },
- { articlesCount: current, total }
- )}
></progress>
</div>
);