mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 17:43:43 +08:00
6ec6cfccf8
This changes the thread header positioning of the unread indicator to match the designs based on the route: 1. When the channel is open, show the indicator of # unread threads with the icon 2. When the threads list is open, show no indicator since you are on the list and can see which threads are unread 3. When a single thread is open, show the unread threads indicator along with a left < back button, with a label to show that this goes back to ongoing discussions Drawer changes to come in another PR.
93 lines
1.4 KiB
SCSS
93 lines
1.4 KiB
SCSS
@mixin thread-list-item {
|
|
display: flex;
|
|
flex-direction: row;
|
|
padding: 0.5rem;
|
|
border-radius: 4px;
|
|
background-color: var(--primary-very-low);
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.chat-thread-list-item {
|
|
@include thread-list-item;
|
|
cursor: pointer;
|
|
margin: 0.25rem;
|
|
|
|
& + .chat-thread-list-item {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.touch & {
|
|
&:active {
|
|
background-color: var(--d-hover);
|
|
border: 1px solid var(--primary-300);
|
|
}
|
|
}
|
|
|
|
.no-touch & {
|
|
&:hover,
|
|
&:active {
|
|
background-color: var(--d-hover);
|
|
border: 1px solid var(--primary-300);
|
|
}
|
|
}
|
|
|
|
&__main {
|
|
flex: 1 1 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
&__body {
|
|
padding-bottom: 0.25rem;
|
|
word-break: break-word;
|
|
margin: 0.5rem 0rem;
|
|
|
|
> * {
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
&__metadata {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
&__last-reply {
|
|
color: var(--secondary-low);
|
|
font-size: var(--font-down-1);
|
|
}
|
|
|
|
&__header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
&__title {
|
|
flex: 1 1 auto;
|
|
font-weight: bold;
|
|
}
|
|
|
|
&__unread-indicator {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
&__open-button {
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-sizing: border-box;
|
|
justify-content: center;
|
|
color: var(--primary);
|
|
|
|
&:hover,
|
|
&:visited {
|
|
color: var(--primary);
|
|
}
|
|
}
|
|
|
|
&__om-user-avatar {
|
|
margin-right: 0.5rem;
|
|
flex: 0 0 auto;
|
|
}
|
|
}
|