fix(message): re-added click to usericon

This commit is contained in:
trashtemp
2022-01-15 22:50:29 +01:00
parent d0ae08e421
commit e57a996102
4 changed files with 45 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
import { Markdown } from "@styled-icons/boxicons-logos";
import isEqual from "lodash.isequal";
import { observer } from "mobx-react-lite";
import { Server } from "revolt.js/dist/maps/Servers";
@@ -84,7 +85,7 @@ export const Overview = observer(({ server }: Props) => {
</h3>
<TextAreaAutoSize
maxRows={10}
minHeight={60}
minHeight={120}
maxLength={1024}
value={description}
placeholder={"Add a topic..."}
@@ -93,6 +94,19 @@ export const Overview = observer(({ server }: Props) => {
if (!changed) setChanged(true);
}}
/>
<div className={styles.markdown}>
<Markdown size="24" />
<h5>
Descriptions support Markdown formatting,{" "}
<a
href="https://developers.revolt.chat/markdown"
target="_blank"
rel="noreferrer">
learn more here
</a>
.
</h5>
</div>
<hr />
<h3>
<Text id="app.main.servers.custom_banner" />

View File

@@ -15,6 +15,25 @@
}
}
}
.markdown {
display: flex;
align-items: center;
margin-top: 8px;
gap: 4px;
svg {
flex-shrink: 0;
}
a:hover {
text-decoration: underline;
}
h5 {
margin: 0;
}
}
}
.userList {