discourse/plugins/chat/assets/stylesheets/mobile/chat-message.scss
Joffrey JAFFEUX 89d7b1861d
FIX: various mobile optimizations (#22043)
* 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
2023-06-09 17:37:26 +02:00

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);
}
}
}