Skip to content

Commit f024797

Browse files
committed
style(dev): update layout and styling for improved responsiveness
- Enabled MobileListResourceNavigation in the post layout for better navigation on mobile devices. - Adjusted positioning of the resource navigation component for enhanced visibility. - Refined styling for the PostNextUpFromListPagination and PostPlayer components to ensure consistent design across different screen sizes. - Added padding to the search component for improved layout on mobile.
1 parent be6c8e7 commit f024797

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

apps/dev-build/src/app/(content)/[post]/_components/list-resource-navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export function MobileListResourceNavigation() {
159159

160160
return (
161161
<>
162-
<div className="bg-card fixed left-1 top-1.5 z-50 flex scale-90 items-center gap-4 rounded-lg border py-1 pl-1 pr-6 shadow-sm sm:left-3 xl:sr-only xl:hidden">
162+
<div className="bg-card fixed bottom-1.5 left-1 z-50 flex scale-90 items-center gap-4 rounded-lg border py-1 pl-1 pr-6 shadow-sm sm:left-3 md:sr-only md:hidden">
163163
<Button
164164
className="rounded"
165165
onClick={() => {

apps/dev-build/src/app/(content)/[post]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default async function Layout(props: {
4747
{/* {list && (
4848
<ModuleResourceList className="sticky top-0 hidden max-w-xs border-x border-b lg:block" />
4949
)} */}
50-
{/* <MobileListResourceNavigation /> */}
50+
<MobileListResourceNavigation />
5151
<div className="w-full min-w-0">{props.children}</div>
5252
</div>
5353
</LayoutClient>

apps/dev-build/src/app/(content)/_components/post-next-up-from-list-pagination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default function PostNextUpFromListPagination({
8080
<li className="flex flex-col">
8181
<Link
8282
href={`/${nextUp.resource.fields?.slug}`}
83-
className="dark:text-primary text-primary-dark flex w-full items-center gap-2 text-balance text-lg underline hover:underline lg:text-xl"
83+
className="text-primary-dark flex w-full items-center gap-2 text-balance text-lg underline hover:underline lg:text-xl"
8484
onClick={async () => {
8585
if (!isCompleted) {
8686
addLessonProgress(postId)

apps/dev-build/src/app/(content)/posts/_components/post-player.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export function PostPlayer({
178178
</div>
179179
{list && (
180180
<ModuleResourceList
181-
className="dark max-w-xs"
181+
className="dark hidden max-w-xs md:block"
182182
currentLessonSlug={postSlug}
183183
options={{ stretchToFullViewportHeight: false }}
184184
/>

apps/dev-build/src/app/(search)/browse/_components/search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function SearchContent() {
8484

8585
{/* Mobile layout */}
8686
<div className="flex flex-col gap-4 md:hidden">
87-
<div className="flex items-center gap-3">
87+
<div className="flex items-center gap-3 px-3 pt-3">
8888
<div className="flex-1">
8989
<SearchBox />
9090
</div>

0 commit comments

Comments
 (0)