UX: set mobile read state indicator to static size to avoid overflow (#30910)

This fixes an issue where topics could scroll horizontally on mobile:
https://meta.discourse.org/t/topic-page-layout-issue/348262?u=pmusaraj

It seems some recent core change impacted the read state size/position 

This sets the size and position to more static values (not based on
global font changes) to avoid the issue, and removes the horizontal
scroll.
This commit is contained in:
Kris 2025-01-21 17:24:58 -05:00 committed by GitHub
parent d7f008d482
commit a3359ac7ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -425,10 +425,9 @@ span.highlighted {
// contained within the padding to prevent vertical overflow
max-width: var(--d-wrap-padding-h);
right: calc(var(--d-wrap-padding-h) * -1);
font-size: var(--font-down-5);
font-size: 6px; // static size to avoid overflow issues
svg {
right: -0.25em;
right: -2px;
}
}