Tweak styles

This commit is contained in:
Kalle
2026-03-15 16:22:17 +02:00
parent d07c8d2ce8
commit 47790d5bbf
3 changed files with 1 additions and 13 deletions

View File

@@ -1,7 +1,5 @@
import clsx from "clsx";
import type * as React from "react";
import { isRouteErrorResponse, useRouteError } from "react-router";
import { useHasRole } from "~/modules/permissions/hooks";
import styles from "./Main.module.css";
export const Main = ({
@@ -19,20 +17,12 @@ export const Main = ({
bigger?: boolean;
style?: React.CSSProperties;
}) => {
const error = useRouteError();
const isMinorSupporter = useHasRole("MINOR_SUPPORT");
const showLeaderboard =
import.meta.env.VITE_FUSE_ENABLED &&
!isMinorSupporter &&
!isRouteErrorResponse(error);
return (
<main
className={
classNameOverwrite
? clsx(classNameOverwrite, {
[styles.narrow]: halfWidth,
"pt-8": showLeaderboard,
})
: clsx(
styles.main,
@@ -40,7 +30,6 @@ export const Main = ({
{
[styles.narrow]: halfWidth,
[styles.wide]: bigger,
"pt-8": showLeaderboard,
},
className,
)

View File

@@ -80,7 +80,6 @@
flex-wrap: wrap;
justify-content: center;
padding: var(--s-2);
gap: var(--s-2);
}
.stylePanel {

View File

@@ -592,7 +592,7 @@
.top-leaderboard {
min-height: 100px;
margin: 10px 0;
margin-top: 10px;
}
@media screen and (max-width: 599px) {