feat: upgrade dm styles

This commit is contained in:
2023-05-11 15:25:01 +01:00
parent fdcf77ad55
commit 663c2ea433
19 changed files with 388 additions and 230 deletions

View File

@ -57,7 +57,8 @@ export default function Layout() {
}, [location]);
useEffect(() => {
if (location.pathname.startsWith("/login")) {
const widePage = ["/login", "/messages"];
if (widePage.some(a => location.pathname.startsWith(a))) {
setPageClass("");
} else {
setPageClass("page");
@ -162,7 +163,7 @@ export default function Layout() {
{!shouldHideNoteCreator && (
<>
<button className="note-create-button" type="button" onClick={handleNoteCreatorButtonClick}>
<button className="note-create-button" onClick={handleNoteCreatorButtonClick}>
<Icon name="plus" size={16} />
</button>
<NoteCreator />