Widen thread modal and improve textarea spacing

This commit is contained in:
2026-04-29 23:38:06 +02:00
parent 834451f33b
commit 93f19858a9
2 changed files with 12 additions and 3 deletions
+3 -1
View File
@@ -10,8 +10,10 @@ export class ThreadModal extends Modal {
onOpen(): void { onOpen(): void {
const { contentEl } = this; const { contentEl } = this;
this.modalEl.addClass("unicode-thread-modal");
this.modalEl.style.width = "700px";
this.modalEl.style.maxWidth = "85vw";
contentEl.empty(); contentEl.empty();
contentEl.addClass("unicode-thread-modal");
const headingText = this.tweets.length === 1 const headingText = this.tweets.length === 1
? "X post" ? "X post"
+9 -2
View File
@@ -8,7 +8,7 @@
.unicode-thread-modal .thread-tweet-item { .unicode-thread-modal .thread-tweet-item {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 4px; gap: 8px;
} }
.unicode-thread-modal .thread-tweet-header { .unicode-thread-modal .thread-tweet-header {
@@ -23,9 +23,15 @@
color: var(--text-muted); color: var(--text-muted);
} }
.unicode-thread-modal {
max-width: 700px;
width: 85vw;
}
.unicode-thread-modal .thread-tweet-textarea { .unicode-thread-modal .thread-tweet-textarea {
width: 100%; width: 100%;
min-height: 60px; min-height: 120px;
box-sizing: border-box;
resize: vertical; resize: vertical;
font-family: var(--font-text); font-family: var(--font-text);
font-size: var(--font-text-size); font-size: var(--font-text-size);
@@ -38,6 +44,7 @@
.unicode-thread-modal .thread-copy-button { .unicode-thread-modal .thread-copy-button {
align-self: flex-end; align-self: flex-end;
margin-top: 4px;
} }
.unicode-thread-modal .thread-copy-all-button { .unicode-thread-modal .thread-copy-all-button {