diff --git a/src/client/instance.js b/src/client/instance.js index ca737f1..e15d99f 100644 --- a/src/client/instance.js +++ b/src/client/instance.js @@ -54,7 +54,9 @@ export class Instance { c.push(capabilities.REACTIONS); break; case server_types.ICESHRIMP: - c.push(capabilities.MARKDOWN_CONTENT); + // more trouble than it's worth atm + // the server already hands this to us ;p + // c.push(capabilities.MARKDOWN_CONTENT); c.push(capabilities.REACTIONS); break; case server_types.SHARKEY: diff --git a/src/post/Body.svelte b/src/post/Body.svelte index 5e164ca..5209721 100644 --- a/src/post/Body.svelte +++ b/src/post/Body.svelte @@ -59,7 +59,7 @@ font-size: 1.2em; } - .post-text :global(code:has(pre)) { + .post-text :global(pre:has(code)) { margin: 8px 0; padding: 8px; display: block; @@ -69,7 +69,7 @@ color: var(--accent); } - .post-text :global(code pre) { + .post-text :global(pre code) { margin: 0; } diff --git a/src/post/BoostContext.svelte b/src/post/BoostContext.svelte index 08362a0..3562809 100644 --- a/src/post/BoostContext.svelte +++ b/src/post/BoostContext.svelte @@ -29,10 +29,6 @@ transition: opacity .1s; } - .post-container:hover .post-context { - opacity: 1; - } - .post-context-icon { margin-right: 4px; } diff --git a/src/post/Post.svelte b/src/post/Post.svelte index a2223b8..206cfa5 100644 --- a/src/post/Post.svelte +++ b/src/post/Post.svelte @@ -63,6 +63,11 @@ background-color: var(--bg2); } + .post-container:hover :global(.post-context) { + opacity: 1; + } + + :global(.post-reactions) { margin-top: 16px; display: flex;