fix: make the create group button do the correct thing

This commit is contained in:
Paul 2021-12-24 17:15:39 +00:00
parent bdc84b1d98
commit b2c24d33ed
2 changed files with 6 additions and 4 deletions

View file

@ -26,9 +26,9 @@
}
.actions {
//grid-template-columns: repeat(2, 300px);
grid-template-columns: 300px 300px;
//grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
// grid-template-columns: repeat(2, 300px);
// grid-template-columns: 300px 300px;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-column: span 2;
gap: 16px;
//margin: auto;

View file

@ -17,6 +17,8 @@ import "./snow.scss";
import { Text } from "preact-i18n";
import { useContext, useMemo } from "preact/hooks";
import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice";
import { useApplicationState } from "../../mobx/State";
import { AppContext } from "../../context/revoltjs/RevoltClient";
@ -50,7 +52,7 @@ export default observer(() => {
);
const seasonalTheme = state.settings.get("appearance:seasonal") ?? true;
const isDecember = new Date().getMonth() === 11;
const isDecember = !isTouchscreenDevice && new Date().getMonth() === 11;
const snowflakes = useMemo(() => {
const flakes = [];