Skip to content

Commit

Permalink
style: mobile tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Cygnusfear committed Oct 25, 2023
1 parent 8f255e6 commit 7a2e92b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const App = () => {
return (
<RootLayout>
<GameRoot />
<MudExample />
<MudExample display={false} />
<LoadingScreen />
</RootLayout>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/ui/inventory.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}

.inventory-bar {
@apply flex-row flex justify-start w-full h-44 overflow-x-scroll overflow-y-visible z-50 max-w-full;
@apply flex-row flex justify-start sm:justify-center w-full h-44 overflow-x-scroll overflow-y-clip z-50 max-w-full px-3;
scroll-snap-type: x mandatory; /* Enable vertical snap scrolling */
scrollbar-width: none;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/ui/tutorialModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function TutorialModal({
{!step.screens[screenIndex].hideNext && (
<button
onClick={() => onNext()}
className="w-full cursor-pointer rounded border border-t-0 border-[#FDBF7F] bg-[#FDBF7Faa] px-4 py-2 text-white hover:bg-[#FDBF7Fee] sm:w-auto"
className="w-full cursor-pointer border border-t-0 border-[#FDBF7F] bg-[#FDBF7F] px-4 py-2 text-white hover:bg-[#FDBF7Fee] sm:w-auto sm:rounded sm:bg-[#FDBF7Faa]"
>
Next
</button>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/mudExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getState } from "./game/store";
import { useState, useEffect } from "react";
import { getTimestamp } from "./lib/utils";

export const MudExample = (display: boolean = false) => {
export const MudExample = ({ display = false }: { display: boolean }) => {
const {
components: { Counter, GameSetting },
systemCalls: {
Expand Down

0 comments on commit 7a2e92b

Please sign in to comment.