2024-07-20 21:10:06 +02:00
|
|
|
/* layout */
|
|
|
|
|
#chat-page #main #message-page .content {
|
2026-04-01 08:29:39 +00:00
|
|
|
padding: 0px;
|
2024-07-20 21:10:06 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
overflow: hidden;
|
2024-07-20 21:10:06 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
display: grid;
|
|
|
|
|
grid-template-rows: 1fr var(--control-height) var(--safe-area-bottom);
|
2024-07-20 21:10:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#message-page #message-container {
|
2026-04-01 08:29:39 +00:00
|
|
|
overflow: auto;
|
2024-07-20 21:10:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* composer */
|
|
|
|
|
#message-page #composer {
|
2026-04-01 08:29:39 +00:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
2024-07-20 21:15:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#message-page #composer input {
|
2026-04-01 08:29:39 +00:00
|
|
|
margin: 0px;
|
2024-07-20 21:15:06 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
width: 100%;
|
|
|
|
|
max-width: unset;
|
2024-07-20 21:15:06 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
flex: 1;
|
2024-07-21 01:56:10 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
border-top: 1px solid var(--border);
|
|
|
|
|
border-left: 1px solid var(--border);
|
2024-07-21 01:12:35 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-21 01:53:25 +02:00
|
|
|
@media (max-width: 700px) {
|
2026-04-01 08:29:39 +00:00
|
|
|
#message-page #composer div {
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: unset;
|
2024-07-21 01:53:25 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
display: flex;
|
|
|
|
|
}
|
2024-07-21 01:53:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: 700px) {
|
2026-04-08 11:24:33 +00:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
#message-page #composer .content-width-constraint,
|
|
|
|
|
#message-page #composer .input-width-constraint {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-end;
|
2024-07-21 01:53:25 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
width: 100%;
|
|
|
|
|
max-width: var(--max-content-width);
|
|
|
|
|
}
|
2024-07-21 01:53:25 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
#message-page #composer .content-width-constraint {
|
|
|
|
|
max-width: var(--max-content-width);
|
|
|
|
|
}
|
2024-07-21 01:53:25 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
#message-page #composer .input-width-constraint {
|
|
|
|
|
max-width: var(--max-input-width);
|
|
|
|
|
}
|
2024-07-21 01:53:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* message */
|
2024-07-21 01:12:35 +02:00
|
|
|
#message-page #message-container {
|
2026-04-01 08:29:39 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
2024-07-21 01:12:35 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
padding: var(--content-padding);
|
|
|
|
|
gap: var(--gap-between-tiles);
|
2024-07-21 01:12:35 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
height: auto;
|
|
|
|
|
max-height: unset;
|
2026-04-08 14:07:07 +00:00
|
|
|
}
|
2024-07-21 01:53:25 +02:00
|
|
|
|
2026-04-08 14:07:07 +00:00
|
|
|
#message-page #message-container:not([scroll-hard]) {
|
2026-04-01 08:29:39 +00:00
|
|
|
scroll-behavior: smooth;
|
2024-07-21 01:12:35 +02:00
|
|
|
}
|
2024-07-21 01:53:25 +02:00
|
|
|
|
|
|
|
|
.message-bubble {
|
2026-04-01 08:29:39 +00:00
|
|
|
display: flex;
|
2026-04-07 20:06:00 +00:00
|
|
|
flex-direction: column;
|
2026-04-01 08:29:39 +00:00
|
|
|
width: 100%;
|
|
|
|
|
max-width: var(--max-content-width);
|
2024-07-21 01:53:25 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble .tile.main {
|
2026-04-01 08:29:39 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
align-items: start;
|
2024-07-21 01:53:25 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
padding: 0px;
|
2024-07-21 01:53:25 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
width: 100%;
|
|
|
|
|
max-width: var(--max-input-width);
|
|
|
|
|
overflow: hidden;
|
2024-07-21 13:13:41 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble .tile.main .text-container {
|
2026-04-01 08:29:39 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2024-07-21 13:13:41 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
overflow: hidden;
|
2024-07-21 13:13:41 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
width: 100%;
|
|
|
|
|
flex: 1;
|
2024-07-21 01:53:25 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble .tile.main .button-container {
|
2026-04-01 08:29:39 +00:00
|
|
|
display: flex;
|
2024-07-22 00:30:43 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
width: var(--control-height);
|
|
|
|
|
max-width: var(--control-height);
|
2024-07-21 13:13:41 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble .tile.main button {
|
2026-04-01 08:29:39 +00:00
|
|
|
justify-content: center;
|
2024-07-21 13:13:41 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
padding: 0px;
|
|
|
|
|
width: 100%;
|
2024-07-21 13:13:41 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
--surface: transparent;
|
2024-07-21 13:13:41 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble .tile.main .text-container {
|
2026-04-01 08:29:39 +00:00
|
|
|
padding: var(--control-padding);
|
2024-07-21 13:13:41 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble .tile.main .timestamp,
|
|
|
|
|
.message-bubble .tile.main .timestamp .icon,
|
|
|
|
|
.message-bubble .tile.main .sender-name {
|
2026-04-01 08:29:39 +00:00
|
|
|
font-size: 0.8rem;
|
|
|
|
|
opacity: 0.6;
|
2024-07-21 01:53:25 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble .tile.main .timestamp {
|
2026-04-01 08:29:39 +00:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--gap-between-tiles);
|
2024-07-21 14:15:26 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble .tile.main .timestamp .icon {
|
2026-04-01 08:29:39 +00:00
|
|
|
display: none;
|
2024-07-21 14:15:26 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble .tile.main .sender-name {
|
2026-04-01 08:29:39 +00:00
|
|
|
font-weight: bold;
|
2024-07-21 01:53:25 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble .tile.main .body {
|
2026-04-01 08:29:39 +00:00
|
|
|
word-break: break-word;
|
2024-07-21 03:17:40 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-21 01:53:25 +02:00
|
|
|
.message-bubble[sentbyuser] {
|
2026-04-01 08:29:39 +00:00
|
|
|
justify-content: flex-end;
|
2024-07-21 01:53:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message-bubble[sentbyuser] {
|
2026-04-01 08:29:39 +00:00
|
|
|
align-items: flex-end;
|
2024-07-21 01:53:25 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble[sentbyuser] .tile.main,
|
|
|
|
|
.message-bubble[sentbyuser] .tile.main .timestamp {
|
2026-04-01 08:29:39 +00:00
|
|
|
flex-direction: row-reverse;
|
2024-07-21 13:13:41 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble[sentbyuser] .tile.main .timestamp .icon {
|
2026-04-01 08:29:39 +00:00
|
|
|
display: flex;
|
2024-07-21 14:15:26 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-22 00:30:43 +02:00
|
|
|
.message-bubble[sentbyuser] .tile.main span {
|
2026-04-01 08:29:39 +00:00
|
|
|
text-align: right;
|
2024-07-22 00:30:43 +02:00
|
|
|
}
|
2026-04-07 20:06:00 +00:00
|
|
|
|
2026-04-08 11:24:33 +00:00
|
|
|
.message-bubble>.message-reaction-row {
|
|
|
|
|
max-width: var(--max-input-width);
|
|
|
|
|
width: 100%;
|
2026-04-07 20:06:00 +00:00
|
|
|
|
2026-04-08 11:24:33 +00:00
|
|
|
padding: var(--gap-between-tiles);
|
|
|
|
|
background: var(--surface);
|
2026-04-08 14:17:36 +00:00
|
|
|
|
|
|
|
|
display: none !important;
|
2026-04-08 14:19:42 +00:00
|
|
|
overflow: hidden;
|
2026-04-08 14:17:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message-bubble>.message-reaction-row:has(button:not([zero])) {
|
|
|
|
|
display: grid !important;
|
2026-04-07 20:06:00 +00:00
|
|
|
}
|
|
|
|
|
|
2026-04-08 11:24:33 +00:00
|
|
|
.message-bubble>.message-reaction-row button {
|
|
|
|
|
min-height: unset;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: var(--control-padding-compact);
|
|
|
|
|
gap: 0px;
|
|
|
|
|
flex: 1 !important;
|
2026-04-08 14:19:42 +00:00
|
|
|
animation: slide-up var(--animation-duration);
|
2026-04-07 20:06:00 +00:00
|
|
|
}
|
|
|
|
|
|
2026-04-08 11:24:33 +00:00
|
|
|
.message-bubble>.message-reaction-row button[zero] {
|
2026-04-07 20:06:00 +00:00
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message-reaction-row {
|
2026-04-08 11:24:33 +00:00
|
|
|
grid-template-columns: repeat(3, minmax(80px, 1fr));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: 100px) {
|
|
|
|
|
.message-reaction-row {
|
|
|
|
|
grid-template-columns: repeat(3, minmax(80px, 1fr));
|
|
|
|
|
}
|
2026-04-07 20:06:00 +00:00
|
|
|
}
|