mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 23:54:02 +08:00
cec68b3e2c
When clicking back from a thread, we want to either go back to the channel if the thread was opened from an indicator, or to the thread list if we opened it from there. Since ember doesn't give a nice way to get the previous route, we need to store this ourselves. We only do this on mobile, on desktop we just follow existing behaviour. Also implements a chat router history. --------- Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
27 lines
536 B
SCSS
27 lines
536 B
SCSS
.chat-thread-header {
|
|
height: var(--chat-header-offset);
|
|
min-height: var(--chat-header-offset);
|
|
border-bottom: 1px solid var(--primary-low);
|
|
border-top: 1px solid var(--primary-low);
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
padding-inline: 0.5rem;
|
|
|
|
.chat-thread__back-to-previous-route {
|
|
padding: 0.5rem 0;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
&__buttons {
|
|
display: flex;
|
|
margin-left: auto;
|
|
}
|
|
|
|
&__left-buttons {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
}
|