) {
+ return { user?.username ?? };
}
export default function UserShort({ user, size }: { user?: User, size?: number }) {
diff --git a/src/components/markdown/Markdown.module.scss b/src/components/markdown/Markdown.module.scss
index 2f13352a..de439a34 100644
--- a/src/components/markdown/Markdown.module.scss
+++ b/src/components/markdown/Markdown.module.scss
@@ -115,15 +115,23 @@
padding: 0 2px;
cursor: pointer;
user-select: none;
- color: transparent;
border-radius: 4px;
+ color: transparent;
background: #151515;
+ > * {
+ opacity: 0;
+ }
+
&:global(.shown) {
cursor: auto;
user-select: all;
color: var(--foreground);
background: var(--secondary-background);
+
+ > * {
+ opacity: 1;
+ }
}
}
diff --git a/src/components/navigation/items/ButtonItem.tsx b/src/components/navigation/items/ButtonItem.tsx
index 31c29fbe..42792b7b 100644
--- a/src/components/navigation/items/ButtonItem.tsx
+++ b/src/components/navigation/items/ButtonItem.tsx
@@ -97,8 +97,7 @@ export function ChannelButton({ active, alert, alertCount, channel, user, compac
const { openScreen } = useIntermediate();
return (
-
diff --git a/src/lib/ContextMenus.tsx b/src/lib/ContextMenus.tsx
index 358ed937..89bdf8f4 100644
--- a/src/lib/ContextMenus.tsx
+++ b/src/lib/ContextMenus.tsx
@@ -562,7 +562,7 @@ function ContextMenus(props: WithDispatcher) {
}
}
- let id = server?._id ?? channel?._id ?? user?._id ?? message?._id;
+ let id = sid ?? cid ?? uid ?? message?._id;
if (id) {
pushDivider();