mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 16:26:28 +08:00
89d7b1861d
* FIX: increases resize observer throttle delay 25ms is not necessary and was sometimes causing jankyness. * FIX: removes ios momentum fix delay Instead of a 50ms, simply use next+schedule("afterRender") to attempt to have the shortest delay possible. * FIX: backdrop event propagation Prevents backdrop touch to propagate to underlying channel/thread. * UX: adds is-active class to container of active message This change allows to keep the background on the active message while the actions menu is displayed. * FIX: prevents skip-link to be selected on press * UX: allows to close actions menu instantly The backdrop should always receive events, we don't need to wait for the menu to be fully displayed. * UI: adds spacing between last message and composer * UI: makes backdrop less dark * FIX: makes events passive on long-press modifier
45 lines
697 B
SCSS
45 lines
697 B
SCSS
.mobile-view.has-full-page-chat {
|
|
&.disable-message-actions-touch {
|
|
.chat-message-actions {
|
|
> * {
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
#skip-link {
|
|
@include user-select(none);
|
|
}
|
|
|
|
#skip-link,
|
|
.d-header,
|
|
.chat-message-actions-mobile-outlet,
|
|
.chat-channel,
|
|
.chat-thread {
|
|
> * {
|
|
@include user-select(none);
|
|
}
|
|
}
|
|
|
|
.chat-message-container {
|
|
transition: transform 400ms;
|
|
transform: scale(1);
|
|
|
|
&.is-long-pressed {
|
|
animation: scale-animation 400ms;
|
|
}
|
|
}
|
|
|
|
@keyframes scale-animation {
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
80% {
|
|
transform: scale(0.95);
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
}
|