Files
CT/src/View/ChatPages/messagePage.css
T

169 lines
2.9 KiB
CSS
Raw Normal View History

2024-07-20 21:10:06 +02:00
/* layout */
#chat-page #main #message-page .content {
2024-07-21 01:12:35 +02:00
padding: 0px;
2024-07-20 21:10:06 +02:00
2024-07-21 01:12:35 +02:00
overflow: hidden;
2024-07-20 21:10:06 +02:00
2024-07-21 01:12:35 +02: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 {
2024-07-21 01:12:35 +02:00
overflow: auto;
2024-07-20 21:10:06 +02:00
}
/* composer */
#message-page #composer {
2024-07-21 01:12:35 +02:00
display: flex;
2024-07-21 01:53:25 +02:00
justify-content: center;
}
#message-page #composer input {
2024-07-21 01:12:35 +02:00
margin: 0px;
2024-07-21 01:12:35 +02:00
width: 100%;
max-width: unset;
2024-07-21 01:12:35 +02:00
flex: 1;
2024-07-21 01:56:10 +02:00
border-top: 1px solid var(--border);
2024-07-23 21:14:25 +02:00
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) {
#message-page #composer div {
width: 100%;
max-width: unset;
display: flex;
}
}
@media (min-width: 700px) {
#message-page #composer .content-width-constraint,
#message-page #composer .input-width-constraint {
display: flex;
justify-content: flex-end;
width: 100%;
max-width: var(--max-content-width);
}
#message-page #composer .content-width-constraint {
max-width: var(--max-content-width);
}
#message-page #composer .input-width-constraint {
max-width: var(--max-input-width);
}
}
/* message */
2024-07-21 01:12:35 +02:00
#message-page #message-container {
display: flex;
flex-direction: column;
2024-07-21 01:53:25 +02:00
align-items: center;
2024-07-21 01:12:35 +02:00
padding: var(--content-padding);
gap: var(--gap-between-tiles);
2024-07-21 01:53:25 +02:00
height: auto;
max-height: unset;
2024-07-21 01:12:35 +02:00
scroll-behavior: smooth;
}
2024-07-21 01:53:25 +02:00
.message-bubble {
display: flex;
width: 100%;
max-width: var(--max-content-width);
}
2024-07-22 00:30:43 +02:00
.message-bubble .tile.main {
2024-07-21 01:53:25 +02:00
display: flex;
2024-07-21 13:13:41 +02:00
flex-direction: row;
2024-07-22 00:30:43 +02:00
align-items: start;
2024-07-21 01:53:25 +02:00
2024-07-22 00:30:43 +02:00
padding: 0px;
2024-07-21 01:53:25 +02:00
width: 100%;
max-width: var(--max-input-width);
2024-07-21 13:13:41 +02:00
overflow: hidden;
}
2024-07-22 00:30:43 +02:00
.message-bubble .tile.main .text-container {
2024-07-21 13:13:41 +02:00
display: flex;
flex-direction: column;
overflow: hidden;
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 {
2024-07-21 13:13:41 +02:00
display: flex;
2024-07-22 00:30:43 +02: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 {
2024-07-21 13:13:41 +02:00
justify-content: center;
padding: 0px;
2024-07-22 00:30:43 +02:00
width: 100%;
2024-07-21 13:13:41 +02:00
--surface: transparent;
}
2024-07-22 00:30:43 +02:00
.message-bubble .tile.main .text-container {
2024-07-21 13:13:41 +02:00
padding: var(--control-padding);
}
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 {
2024-07-21 01:53:25 +02:00
font-size: 0.8rem;
opacity: 0.6;
}
2024-07-22 00:30:43 +02:00
.message-bubble .tile.main .timestamp {
display: flex;
align-items: center;
gap: var(--gap-between-tiles);
}
2024-07-22 00:30:43 +02:00
.message-bubble .tile.main .timestamp .icon {
display: none;
}
2024-07-22 00:30:43 +02:00
.message-bubble .tile.main .sender-name {
2024-07-21 01:53:25 +02:00
font-weight: bold;
}
2024-07-22 00:30:43 +02:00
.message-bubble .tile.main .body {
2024-07-21 13:13:41 +02:00
word-break: break-word;
2024-07-21 03:17:40 +02:00
}
2024-07-21 01:53:25 +02:00
.message-bubble[sentbyuser] {
justify-content: flex-end;
}
.message-bubble[sentbyuser] {
align-items: flex-end;
}
2024-07-22 00:30:43 +02:00
.message-bubble[sentbyuser] .tile.main,
.message-bubble[sentbyuser] .tile.main .timestamp {
2024-07-21 13:13:41 +02:00
flex-direction: row-reverse;
}
2024-07-22 00:30:43 +02:00
.message-bubble[sentbyuser] .tile.main .timestamp .icon {
display: flex;
}
2024-07-22 00:30:43 +02:00
.message-bubble[sentbyuser] .tile.main span {
2024-07-21 01:53:25 +02:00
text-align: right;
2024-07-22 00:30:43 +02:00
}