dropping markdown support (for now), fixed code block css in html

This commit is contained in:
ari melody 2024-06-21 05:09:08 +01:00
parent c6f3cd0d96
commit 02c70dd358
Signed by: ari
GPG key ID: CF99829C92678188
4 changed files with 10 additions and 7 deletions

View file

@ -54,7 +54,9 @@ export class Instance {
c.push(capabilities.REACTIONS); c.push(capabilities.REACTIONS);
break; break;
case server_types.ICESHRIMP: 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); c.push(capabilities.REACTIONS);
break; break;
case server_types.SHARKEY: case server_types.SHARKEY:

View file

@ -59,7 +59,7 @@
font-size: 1.2em; font-size: 1.2em;
} }
.post-text :global(code:has(pre)) { .post-text :global(pre:has(code)) {
margin: 8px 0; margin: 8px 0;
padding: 8px; padding: 8px;
display: block; display: block;
@ -69,7 +69,7 @@
color: var(--accent); color: var(--accent);
} }
.post-text :global(code pre) { .post-text :global(pre code) {
margin: 0; margin: 0;
} }

View file

@ -29,10 +29,6 @@
transition: opacity .1s; transition: opacity .1s;
} }
.post-container:hover .post-context {
opacity: 1;
}
.post-context-icon { .post-context-icon {
margin-right: 4px; margin-right: 4px;
} }

View file

@ -63,6 +63,11 @@
background-color: var(--bg2); background-color: var(--bg2);
} }
.post-container:hover :global(.post-context) {
opacity: 1;
}
:global(.post-reactions) { :global(.post-reactions) {
margin-top: 16px; margin-top: 16px;
display: flex; display: flex;