Skip to content

Commit

Permalink
locations mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
lillijo committed Jun 25, 2024
1 parent a58f0fc commit d9d6bc4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/[locale]/locations/[place]/@program/default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type ProgramProps = {

function ProgramContainer({ children }: ReactNodeProps) {
return (
<div className="h-contentpages overflow-y-scroll xs:col-span-2">
<div className="h-full xs:col-span-2 sm:h-contentpages sm:overflow-y-scroll">
<div className="min-h-contentpages col-span-1 max-h-fit columns-1 items-start justify-start gap-0 bg-primary xs:col-span-2 md:columns-2">
{children}
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/app/[locale]/locations/[place]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export default async function LocationsPage(props: LocationsPageProps) {
const location = await getLocation(props.params.place);

return (
<div className="col-span-3 h-contentpages w-full overflow-y-scroll overscroll-contain bg-primary p-border">
<div className="col-span-3 h-contentpages w-full bg-primary p-border sm:overflow-y-scroll sm:overscroll-contain">
<LocationsMap mapCut={600} />
<div className="mt-border flex h-full items-start rounded-md bg-secondary p-border">
<div className="mt-border h-full items-start rounded-md bg-secondary p-border sm:flex">
<Subnavigation location={location} />
<Floorplan location={location} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import Rooms from './rooms';

export default function Floorplan({ location }: any) {
return (
<div className="relative h-1/2 w-1/2 p-1">
<div className="relative h-1/2 p-1 sm:w-1/2">
<Image
fill
alt="building background"
className="h-fit w-full object-contain"
className="-mt-7 h-fit w-full object-contain"
placeholder="empty"
src={`/assets/svg/map/ground_plan/popup/${location.image}.svg`}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import BuildingTitle from './title.server';
export default async function Subnavigation({ location }: any) {
const t = await getTranslations('Locations');
return (
<div className="w-1/2 p-gutter-sm">
<div className="p-gutter-sm sm:w-1/2">
<BuildingTitle location={location} />
<SubLocation
title={t('levels')}
Expand Down

0 comments on commit d9d6bc4

Please sign in to comment.