Skip to content

Commit 361ebb5

Browse files
committed
fix: improve mobile view
1 parent a6d44b9 commit 361ebb5

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/components/NavBar.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import ThemeToggle from './ThemeToggle';
99
<section class="px-4 py-2">
1010
<nav class="flex items-center justify-between">
1111
<a class="text-lg font-bold font-heading" href="/ls/">
12-
<span class="md:hidden">LS</span>
12+
<span class="sm:hidden">Ling. Script</span>
1313
<span class="max-sm:hidden">Linguagem de Script</span>
1414
</a>
1515

src/components/Sidebar.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { MENU } from '../consts';
44

55
<aside
66
id="default-sidebar"
7-
class="fixed z-50 left-0 top-11 md:h-screen md:w-36 xl:w-48 self-start bg-gray-100 dark:bg-slate-800 hidden lg:block"
7+
class="fixed z-50 left-0 top-11 md:h-screen w-full md:w-64 self-start shadow-md bg-gray-100 dark:bg-slate-800 hidden dark:border-r-white/30 dark:border-r lg:block"
88
aria-label="Sidebar"
99
>
1010
<div class="md:h-screen px-3 py-4 overflow-y-auto">

src/components/TableOfContent.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { headings } = Astro.props;
1111
---
1212

1313
<nav
14-
class="toc fixed top-11 right-0 h-[calc(100vh-2.75rem)] py-8 px-2 lg:w-56 xl:w-64 self-start hidden lg:block overflow-y-scroll"
14+
class="toc fixed top-11 right-0 h-[calc(100vh-2.75rem)] py-8 lg:w-56 xl:w-64 self-start hidden xl:block overflow-y-scroll"
1515
>
1616
<ul class="flex flex-col gap-2">
1717
{

src/layouts/BaseLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const { pageTitle } = Astro.props;
2626
>
2727
<Sidebar />
2828

29-
<article class="mx-auto py-8 lg:pl-40 xl:pl-64 max-sm:px-4">
29+
<article class="mx-auto lg:ml-64 py-8 px-4 md:w-full">
3030
<slot />
3131
</article>
3232
</div>

src/layouts/MarkDownLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const githubEditUrl = `${GITHUB_EDIT_URL}/src${file.split('/src').pop()}`;
6262
<Sidebar />
6363

6464
<article
65-
class="basis-full prose 2xl:prose-xl mx-auto py-8 max-sm:px-4 xl:px-4 xl:max-w-screen-md dark:prose-invert overflow-hidden"
65+
class="mx-auto lg:max-xl:ml-64 py-8 px-4 md:px-6 max-xl:max-w-none w-full prose 2xl:prose-xl dark:prose-invert overflow-hidden"
6666
>
6767
<slot />
6868

src/pages/classnotes.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ classroomEntries.sort(
1616
---
1717

1818
<BaseLayout pageTitle="Conteúdos">
19-
<main class="mx-auto">
19+
<main>
2020
<h1 class="font-bold text-4xl text-center pb-16 pt-24">Conteúdos</h1>
2121
<div
22-
class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 pb-16 px-4"
22+
class="max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4 pb-16 px-4"
2323
>
2424
{
2525
classroomEntries.map((entry) => (

0 commit comments

Comments
 (0)