fix issue where viewcounts were creating a new line
This commit is contained in:
parent
78d0ff9793
commit
464eec9663
2 changed files with 19 additions and 2 deletions
|
@ -15,6 +15,7 @@ export default function FileViewCountInline(props: Props) {
|
|||
let formattedViewCount;
|
||||
|
||||
try {
|
||||
// SI notation that changes 1234 to 1.2K, look up Intl.NumberFormat() for docs
|
||||
formattedViewCount = Number(viewCount).toLocaleString(lang || 'en', {
|
||||
compactDisplay: 'short',
|
||||
notation: 'compact',
|
||||
|
|
|
@ -556,13 +556,23 @@
|
|||
.claim-tile__info {
|
||||
display: flex;
|
||||
margin-top: var(--spacing-s);
|
||||
padding: var(--spacing-s);
|
||||
border-top: 1px solid var(--color-border);
|
||||
color: var(--color-subtitle);
|
||||
padding: var(--spacing-s);
|
||||
|
||||
// accommodating for large view counts on channel overview
|
||||
@media (min-width: $breakpoint-large) {
|
||||
padding: var(--spacing-s) 4px;
|
||||
}
|
||||
|
||||
.channel-thumbnail {
|
||||
@include handleChannelGif(2.1rem);
|
||||
margin-right: var(--spacing-s);
|
||||
|
||||
// accommodating for large view counts on channel overview
|
||||
@media (min-width: $breakpoint-large) {
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -608,7 +618,13 @@
|
|||
.view_count {
|
||||
&::after {
|
||||
content: '•';
|
||||
margin: 0 var(--spacing-xxs);
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
@media (min-width: $breakpoint-large) {
|
||||
&::after {
|
||||
margin: 0 2.5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue