389 lines
6.6 KiB
CSS
389 lines
6.6 KiB
CSS
.msg-thread-pane {
|
|
flex: 1;
|
|
min-height: 0;
|
|
/* border: 2px solid var(--primary-color); */
|
|
border-radius: 10px;
|
|
background: var(--secondary-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
.msg-thread-header {
|
|
padding: 10px;
|
|
border-bottom: 1px solid var(--muted-color);
|
|
font-size: 90%;
|
|
color: var(--primary-color);
|
|
min-height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.msg-thread-header-row {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.msg-thread-header-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 5px;
|
|
border: 1px solid var(--muted-color);
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
background: var(--secondary-color);
|
|
filter: grayscale(var(--image-grayscale));
|
|
transition: filter 0.2s;
|
|
}
|
|
|
|
.msg-thread-header-avatar:hover {
|
|
filter: grayscale(var(--image-grayscale-hover));
|
|
}
|
|
|
|
.msg-thread-header-name {
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--primary-color);
|
|
font-size: 95%;
|
|
}
|
|
|
|
.msg-thread-messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.msg-bubble-row {
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
|
|
.msg-bubble-row.outgoing {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.msg-bubble-row.incoming,
|
|
.msg-bubble-row.system {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.msg-bubble {
|
|
max-width: 75%;
|
|
border: 1px solid var(--primary-color);
|
|
border-radius: 10px;
|
|
padding: 8px 10px;
|
|
white-space: normal;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
font-size: 90%;
|
|
color: var(--primary-color);
|
|
background: var(--secondary-color);
|
|
}
|
|
|
|
.msg-bubble-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.msg-bubble-header-main {
|
|
min-width: 0;
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.msg-bubble-avatar-wrap {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--muted-color);
|
|
background: var(--secondary-color);
|
|
flex-shrink: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.msg-bubble-avatar {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
filter: grayscale(var(--image-grayscale));
|
|
}
|
|
|
|
.msg-bubble-sender-meta {
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
}
|
|
|
|
.msg-bubble-sender-name {
|
|
font-size: 78%;
|
|
color: var(--primary-color);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.msg-bubble-header-meta {
|
|
font-size: 66%;
|
|
color: var(--muted-color);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.msg-bubble-menu-host {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.msg-bubble.outgoing {
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.msg-bubble.incoming {
|
|
border-color: var(--muted-color);
|
|
}
|
|
|
|
.msg-bubble.system {
|
|
border-style: dashed;
|
|
border-color: var(--muted-color);
|
|
color: var(--muted-color);
|
|
font-size: 82%;
|
|
}
|
|
|
|
.msg-bubble-content {
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.msg-bubble-content > *:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.msg-bubble-content > *:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.msg-bubble-content p {
|
|
margin: 0 0 0.3em 0;
|
|
}
|
|
|
|
.msg-bubble-content code {
|
|
background: rgba(128, 128, 128, 0.18);
|
|
border-radius: 4px;
|
|
padding: 1px 4px;
|
|
font-size: 85%;
|
|
}
|
|
|
|
.msg-bubble-content pre {
|
|
background: rgba(0, 0, 0, 0.15);
|
|
border-radius: 6px;
|
|
padding: 6px 8px;
|
|
margin: 4px 0;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.msg-bubble-content pre code {
|
|
background: transparent;
|
|
padding: 0;
|
|
border-radius: 0;
|
|
font-size: 90%;
|
|
}
|
|
|
|
.msg-bubble-content blockquote {
|
|
margin: 4px 0;
|
|
padding: 2px 8px;
|
|
border-left: 3px solid var(--muted-color);
|
|
color: var(--muted-color);
|
|
}
|
|
|
|
.msg-bubble-content a {
|
|
color: var(--accent-color);
|
|
text-decoration: underline;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.msg-bubble-content img {
|
|
display: block;
|
|
max-width: 100%;
|
|
border-radius: 6px;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.msg-bubble-content ul,
|
|
.msg-bubble-content ol {
|
|
margin: 4px 0;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.msg-bubble-content table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 6px 0;
|
|
}
|
|
|
|
.msg-bubble-content th,
|
|
.msg-bubble-content td {
|
|
border: 1px solid var(--border-color);
|
|
padding: 4px 8px;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.msg-bubble-content thead th {
|
|
background: rgba(128, 128, 128, 0.12);
|
|
}
|
|
|
|
.msg-bubble-content tbody tr:nth-child(even) {
|
|
background: rgba(128, 128, 128, 0.06);
|
|
}
|
|
|
|
.msg-bubble-content del,
|
|
.msg-bubble-content s {
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.msg-bubble-cashu {
|
|
margin-top: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.msg-bubble-cashu-token {
|
|
font-family: var(--font-family);
|
|
font-size: 72%;
|
|
color: var(--muted-color);
|
|
word-break: break-all;
|
|
border: 1px solid var(--muted-color);
|
|
border-radius: 6px;
|
|
padding: 6px;
|
|
}
|
|
|
|
.msg-bubble-cashu-qr {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 10px;
|
|
border: 1px solid var(--muted-color);
|
|
border-radius: 8px;
|
|
background: var(--secondary-color);
|
|
}
|
|
|
|
.msg-bubble-cashu-qr svg {
|
|
width: min(320px, 75vw);
|
|
height: auto;
|
|
max-width: 100%;
|
|
background: var(--secondary-color);
|
|
}
|
|
|
|
.msg-bubble-attachments {
|
|
margin-top: 8px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.msg-bubble-attachment-img {
|
|
max-width: 220px;
|
|
max-height: 220px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--muted-color);
|
|
object-fit: cover;
|
|
}
|
|
|
|
.msg-bubble-time {
|
|
display: none;
|
|
}
|
|
|
|
.msg-bubble-meta {
|
|
display: none;
|
|
}
|
|
|
|
.msg-reply-box {
|
|
border-top: 1px solid var(--muted-color);
|
|
padding: 10px;
|
|
display: block;
|
|
}
|
|
|
|
.msg-reply-input {
|
|
flex: 1;
|
|
min-height: 46px;
|
|
max-height: 140px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--primary-color);
|
|
border-radius: 8px;
|
|
padding: 8px;
|
|
background: var(--secondary-color);
|
|
color: var(--primary-color);
|
|
white-space: pre-wrap;
|
|
outline: none;
|
|
font-size: 90%;
|
|
}
|
|
|
|
.msg-reply-input:focus {
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.msg-reply-input:empty::before {
|
|
content: "Type reply (Tab to Send button)";
|
|
color: var(--muted-color);
|
|
}
|
|
|
|
.msg-empty-state {
|
|
color: var(--muted-color);
|
|
font-size: 80%;
|
|
padding: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
.msg-typing {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.msg-typing-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
opacity: 0.35;
|
|
animation: msgTypingPulse 0.9s ease-in-out infinite;
|
|
}
|
|
|
|
.msg-typing-dot:nth-child(2) {
|
|
animation-delay: 0.16s;
|
|
}
|
|
|
|
.msg-typing-dot:nth-child(3) {
|
|
animation-delay: 0.32s;
|
|
}
|
|
|
|
@keyframes msgTypingPulse {
|
|
0%,
|
|
80%,
|
|
100% {
|
|
opacity: 0.35;
|
|
transform: translateY(0);
|
|
}
|
|
40% {
|
|
opacity: 1;
|
|
transform: translateY(-1px);
|
|
}
|
|
}
|