1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-01 00:08:31 +09:00

Merge pull request #10248 from saschanaz/alt-pre-line

fix(frontend/MkMediaList): altメッセージのnewlineを認識
This commit is contained in:
tamaina 2023-03-10 00:17:06 +09:00 committed by GitHub
commit 89393aaf95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ onMounted(() => {
}); });
lightbox.init(); lightbox.init();
window.addEventListener('popstate', () => { window.addEventListener('popstate', () => {
if (lightbox.pswp && lightbox.pswp.isOpen === true) { if (lightbox.pswp && lightbox.pswp.isOpen === true) {
lightbox.pswp.close(); lightbox.pswp.close();
@ -239,5 +239,6 @@ const previewable = (file: misskey.entities.DriveFile): boolean => {
max-height: 8em; max-height: 8em;
overflow-y: auto; overflow-y: auto;
text-shadow: var(--bg) 0 0 10px, var(--bg) 0 0 3px, var(--bg) 0 0 3px; text-shadow: var(--bg) 0 0 10px, var(--bg) 0 0 3px, var(--bg) 0 0 3px;
white-space: pre-line;
} }
</style> </style>