FEATURE: show unread post indicator on mobile (#25421)

This commit is contained in:
Kris 2024-02-06 11:50:49 -05:00 committed by GitHub
parent 85ea4e44de
commit 59ccb69db0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 26 additions and 17 deletions

View File

@ -340,10 +340,11 @@ textarea {
}
.wrap {
--d-wrap-padding-h: 10px;
max-width: var(--d-max-width);
margin-right: auto;
margin-left: auto;
padding: 0 10px;
padding: 0 var(--d-wrap-padding-h);
.contents {
position: relative;
}

View File

@ -1741,3 +1741,17 @@ html.discourse-no-touch .fullscreen-table-wrapper:hover {
opacity: 100%;
}
}
.read-state {
position: absolute;
// We use absolute positioning here because we want it to display in the padding
align-self: center;
color: var(--tertiary-medium);
right: 0;
font-size: 0.571em;
&.read {
visibility: hidden;
opacity: 0;
transition: visibility 1s, opacity ease-out 1s;
}
}

View File

@ -636,21 +636,6 @@ span.highlighted {
color: var(--primary-low-mid);
}
.read-state {
position: absolute;
// We use absolute positioning here because we want it to display in the padding
align-self: center;
color: var(--tertiary-medium);
right: 0;
font-size: 0.571em;
}
.read-state.read {
visibility: hidden;
opacity: 0;
transition: visibility 1s, opacity ease-out 1s;
}
.topic-post.sticky-avatar {
.topic-avatar {
position: sticky;

View File

@ -384,7 +384,16 @@ span.highlighted {
}
.read-state {
display: none;
// 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-2);
overflow: hidden;
margin-top: 0.15em;
svg {
right: calc(var(--d-wrap-padding-h) / 2.5 * -1);
}
}
.post-notice {