chore: fix font issues

This commit is contained in:
LynithDev 2025-07-20 13:49:18 +02:00
parent c3a851d77e
commit 181660c638
4 changed files with 23 additions and 15 deletions

View file

@ -12,7 +12,15 @@ export function TabList({
ref?: React.Ref<HTMLDivElement>;
}) {
return (
<div className={twMerge('flex flex-row gap-2 px-10 border border-transparent bg-page-elevated transition-all', floating ? 'py-3 shadow-lg border-ghost-overlay rounded-xl' : 'py-6 rounded-2xl', className)} ref={ref}>
<div
className={twMerge(
'flex flex-row gap-2 border border-transparent bg-page-elevated transition-all',
floating
? 'px-6 mx-4 py-3 shadow-lg border-ghost-overlay rounded-xl'
: 'px-10 py-6 rounded-2xl',
className,
)} ref={ref}
>
{children}
</div>
);

View file

@ -14,6 +14,17 @@
--radius-4xl: 2rem;
}
h1 { @apply text-[2rem] font-semibold; line-height: 1.5 !important; }
h2 { @apply text-[1.5rem] font-semibold; line-height: 1.25 !important; }
h3 { @apply text-[1.25rem] font-medium; }
h4 { @apply text-[1rem] font-medium; }
h5 { @apply text-[0.875rem] text-fg-secondary font-bold uppercase; }
h6 { @apply text-[0.75rem] text-fg-secondary font-medium uppercase; }
code {
@apply rounded-md p-2 text-left;
}
/* i dont know where to put this */
.linearBlur::after {
content: '';
@ -29,4 +40,4 @@
mask: linear-gradient(270deg, transparent, black 50%);
background: linear-gradient(270deg, transparent, rgba(0, 0, 0, 0.85) 80%);
}
}

View file

@ -1,5 +1,5 @@
use std::collections::HashMap;
use std::path::{self, PathBuf};
use std::path::PathBuf;
use async_zip::base::read::mem::ZipFileReader;
use interpulse::api::minecraft::VersionInfo;
@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
use crate::api::ingress::{init_ingress, init_ingress_opt, send_ingress};
use crate::error::LauncherResult;
use crate::store::ingress::{IngressType, SubIngress};
use crate::store::{Dirs, State};
use crate::store::Dirs;
use crate::utils::http::{fetch_advanced, fetch_json};
use crate::utils::io::{self, IOError};

View file

@ -109,14 +109,3 @@ body {
.os-hide-horizontal-scrollbar > .os-scrollbar-horizontal {
display: none;
}
h1 { @apply text-[2rem] font-semibold; line-height: 1.5 !important; }
h2 { @apply text-[1.5rem] font-semibold; line-height: 1.25 !important; }
h3 { @apply text-[1.25rem] font-medium; }
h4 { @apply text-[1rem] font-medium; }
h5 { @apply text-[0.875rem] text-fg-secondary font-bold uppercase; }
h6 { @apply text-[0.75rem] text-fg-secondary font-medium uppercase; }
code {
@apply rounded-md p-2 text-left;
}