Forum post text style fixes.

This commit is contained in:
flash 2023-01-29 21:34:22 +00:00
parent 03a0dcd948
commit af6d4aff3a
3 changed files with 12 additions and 20 deletions

View File

@ -376,15 +376,3 @@
.aembedph-play-external-link:active { .aembedph-play-external-link:active {
background-color: var(--background-colour-translucent-5); background-color: var(--background-colour-translucent-5);
} }
.iembed {
display: inline-block;
overflow: hidden;
text-shadow: initial;
vertical-align: baseline;
}
.iembed img {
vertical-align: middle;
max-width: 100%;
max-height: 900px
}

View File

@ -46,15 +46,11 @@
} }
.forum__post__text { .forum__post__text {
margin: 2px; padding: 2px;
line-height: 1.2em; line-height: 1.4em;
flex: 1 1 auto; flex: 1 1 auto;
overflow: auto;
} }
.forum__post__text--edit { .forum__post__text--edit {
/* figure out why this is needed */
max-width: calc(100% - 4px);
min-width: calc(100% - 4px);
margin: 2px 2px 0; margin: 2px 2px 0;
min-height: 400px; min-height: 400px;
height: 100%; height: 100%;
@ -66,6 +62,12 @@
font-family: inherit; font-family: inherit;
} }
.forum__post__text img {
vertical-align: middle;
max-width: 100%;
max-height: 900px
}
.forum__post__info__content { .forum__post__info__content {
width: 150px; width: 150px;
text-align: center; text-align: center;
@ -173,6 +175,8 @@
} }
.forum__post__signature img { .forum__post__signature img {
vertical-align: middle; vertical-align: middle;
max-width: 100%;
max-height: 150px;
} }
.forum__post__badge { .forum__post__badge {

View File

@ -92,7 +92,7 @@ Misuzu.Forum.Editor.init = function() {
postingPreview.removeAttribute('hidden'); postingPreview.removeAttribute('hidden');
postingText.setAttribute('hidden', 'hidden'); postingText.setAttribute('hidden', 'hidden');
previewButton.value = 'back'; previewButton.value = 'back';
previewButton.textContent = 'Back'; previewButton.textContent = 'Edit';
postingMode.dataset.original = postingMode.textContent; postingMode.dataset.original = postingMode.textContent;
postingMode.textContent = 'Previewing'; postingMode.textContent = 'Previewing';
return; return;