From 181660c6387709458b7ada6ae459c73556bae04f Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Sun, 20 Jul 2025 13:49:18 +0200 Subject: [PATCH] chore: fix font issues --- apps/oneclient/frontend/src/components/Tabs.tsx | 10 +++++++++- apps/onelauncher/frontend/src/styles/global.css | 13 ++++++++++++- packages/core/src/api/java/mod.rs | 4 ++-- packages/web_common/src/theme.css | 11 ----------- 4 files changed, 23 insertions(+), 15 deletions(-) diff --git a/apps/oneclient/frontend/src/components/Tabs.tsx b/apps/oneclient/frontend/src/components/Tabs.tsx index 8657d4da..4104769c 100644 --- a/apps/oneclient/frontend/src/components/Tabs.tsx +++ b/apps/oneclient/frontend/src/components/Tabs.tsx @@ -12,7 +12,15 @@ export function TabList({ ref?: React.Ref; }) { return ( -
+
{children}
); diff --git a/apps/onelauncher/frontend/src/styles/global.css b/apps/onelauncher/frontend/src/styles/global.css index 06a0ee4a..e215a8b0 100644 --- a/apps/onelauncher/frontend/src/styles/global.css +++ b/apps/onelauncher/frontend/src/styles/global.css @@ -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%); -} \ No newline at end of file +} diff --git a/packages/core/src/api/java/mod.rs b/packages/core/src/api/java/mod.rs index 5114c902..7181c826 100644 --- a/packages/core/src/api/java/mod.rs +++ b/packages/core/src/api/java/mod.rs @@ -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}; diff --git a/packages/web_common/src/theme.css b/packages/web_common/src/theme.css index f5fd21f3..f0be6864 100644 --- a/packages/web_common/src/theme.css +++ b/packages/web_common/src/theme.css @@ -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; -} \ No newline at end of file