From 51771c48713ebe3a8efeda8a1c6dbb898ea1e2c0 Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Tue, 22 Apr 2025 14:12:48 +0200 Subject: [PATCH] style: Update styles in various components --- app/components/Callout.tsx | 2 +- app/components/PrevNextLinks.tsx | 2 +- app/components/SmoothScroll.tsx | 2 ++ app/layouts/DocsLayout.tsx | 5 ++--- app/layouts/LayoutDefault.tsx | 18 +----------------- app/partials/LatestDocs.tsx | 2 +- 6 files changed, 8 insertions(+), 23 deletions(-) diff --git a/app/components/Callout.tsx b/app/components/Callout.tsx index f2a3f3e..d29b799 100644 --- a/app/components/Callout.tsx +++ b/app/components/Callout.tsx @@ -42,7 +42,7 @@ export default function Callout(props: { return (
+
{getNeighboringLinks()[0] && ( { if (isMobile()) return; + if (event.ctrlKey) return; + if (event.metaKey) return; const hoveredElement = document.elementFromPoint( event.clientX, diff --git a/app/layouts/DocsLayout.tsx b/app/layouts/DocsLayout.tsx index af1b0e1..767658a 100644 --- a/app/layouts/DocsLayout.tsx +++ b/app/layouts/DocsLayout.tsx @@ -25,7 +25,7 @@ export function DocsLayout(props: DocsLayoutProps) {
{props.children}
- -
+ ); diff --git a/app/layouts/LayoutDefault.tsx b/app/layouts/LayoutDefault.tsx index a1d5438..19c6858 100755 --- a/app/layouts/LayoutDefault.tsx +++ b/app/layouts/LayoutDefault.tsx @@ -31,22 +31,6 @@ export default function DefaultLayout(props: DefaultLayoutProps) { {pageContext.urlPathname === "/" && } - {/* Backup */} - {/*
-