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;
|
let formattedViewCount;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
// SI notation that changes 1234 to 1.2K, look up Intl.NumberFormat() for docs
|
||||||
formattedViewCount = Number(viewCount).toLocaleString(lang || 'en', {
|
formattedViewCount = Number(viewCount).toLocaleString(lang || 'en', {
|
||||||
compactDisplay: 'short',
|
compactDisplay: 'short',
|
||||||
notation: 'compact',
|
notation: 'compact',
|
||||||
|
|
|
@ -556,13 +556,23 @@
|
||||||
.claim-tile__info {
|
.claim-tile__info {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: var(--spacing-s);
|
margin-top: var(--spacing-s);
|
||||||
padding: var(--spacing-s);
|
|
||||||
border-top: 1px solid var(--color-border);
|
border-top: 1px solid var(--color-border);
|
||||||
color: var(--color-subtitle);
|
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 {
|
.channel-thumbnail {
|
||||||
@include handleChannelGif(2.1rem);
|
@include handleChannelGif(2.1rem);
|
||||||
margin-right: var(--spacing-s);
|
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 {
|
.view_count {
|
||||||
&::after {
|
&::after {
|
||||||
content: '•';
|
content: '•';
|
||||||
margin: 0 var(--spacing-xxs);
|
margin: 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: $breakpoint-large) {
|
||||||
|
&::after {
|
||||||
|
margin: 0 2.5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue