Spaces:
Sleeping
Sleeping
Julian Bilcke
commited on
Commit
·
2ed75c8
1
Parent(s):
d160b97
exploring solution for mobile
Browse files
src/app/interface/top-header/index.tsx
CHANGED
|
@@ -66,16 +66,17 @@ export function TopHeader() {
|
|
| 66 |
)}>
|
| 67 |
<div className={cn(
|
| 68 |
`flex flex-col items-start justify-center`,
|
| 69 |
-
`w-64`,
|
| 70 |
)}>
|
| 71 |
<div className={cn(
|
| 72 |
`flex flex-row items-center justify-start`,
|
| 73 |
`transition-all duration-200 ease-in-out`,
|
| 74 |
`cursor-pointer`,
|
| 75 |
"pt-2 text-3xl space-x-1",
|
|
|
|
| 76 |
pathway.className,
|
| 77 |
isNormalSize
|
| 78 |
-
? "scale-125 ml-4 mb-4" : "scale-100 mb-2"
|
| 79 |
)}
|
| 80 |
onClick={() => {
|
| 81 |
setView("home")
|
|
@@ -115,7 +116,7 @@ export function TopHeader() {
|
|
| 115 |
{
|
| 116 |
isNormalSize ?
|
| 117 |
<div className={cn(
|
| 118 |
-
`flex flex-row space-x-3`,
|
| 119 |
`text-[13px] font-semibold`,
|
| 120 |
`mb-4`
|
| 121 |
)}>
|
|
|
|
| 66 |
)}>
|
| 67 |
<div className={cn(
|
| 68 |
`flex flex-col items-start justify-center`,
|
| 69 |
+
`w-full sm:w-64`,
|
| 70 |
)}>
|
| 71 |
<div className={cn(
|
| 72 |
`flex flex-row items-center justify-start`,
|
| 73 |
`transition-all duration-200 ease-in-out`,
|
| 74 |
`cursor-pointer`,
|
| 75 |
"pt-2 text-3xl space-x-1",
|
| 76 |
+
"scale-80 ml-1 mb-2",
|
| 77 |
pathway.className,
|
| 78 |
isNormalSize
|
| 79 |
+
? "sm:scale-125 sm:ml-4 sm:mb-4" : "sm:scale-100 sm:mb-2"
|
| 80 |
)}
|
| 81 |
onClick={() => {
|
| 82 |
setView("home")
|
|
|
|
| 116 |
{
|
| 117 |
isNormalSize ?
|
| 118 |
<div className={cn(
|
| 119 |
+
`hidden sm:flex flex-row space-x-3`,
|
| 120 |
`text-[13px] font-semibold`,
|
| 121 |
`mb-4`
|
| 122 |
)}>
|
src/app/interface/tube-layout/index.tsx
CHANGED
|
@@ -29,9 +29,10 @@ export function TubeLayout({ children }: { children?: ReactNode }) {
|
|
| 29 |
<TopHeader />
|
| 30 |
<main className={cn(
|
| 31 |
`w-full overflow-x-hidden overflow-y-scroll`,
|
|
|
|
| 32 |
headerMode === "normal"
|
| 33 |
-
? `h-[calc(100vh-112px)]`
|
| 34 |
-
: `h-[calc(100vh-48px)]`
|
| 35 |
)}>
|
| 36 |
{children}
|
| 37 |
</main>
|
|
|
|
| 29 |
<TopHeader />
|
| 30 |
<main className={cn(
|
| 31 |
`w-full overflow-x-hidden overflow-y-scroll`,
|
| 32 |
+
`h-[calc(100%-200px)]`,
|
| 33 |
headerMode === "normal"
|
| 34 |
+
? `sm:h-[calc(100vh-112px)]`
|
| 35 |
+
: `sm:h-[calc(100vh-48px)]`
|
| 36 |
)}>
|
| 37 |
{children}
|
| 38 |
</main>
|
src/app/views/home-view/index.tsx
CHANGED
|
@@ -36,7 +36,7 @@ export function HomeView() {
|
|
| 36 |
|
| 37 |
return (
|
| 38 |
<div className={cn(
|
| 39 |
-
`pr-4`
|
| 40 |
)}>
|
| 41 |
<VideoList
|
| 42 |
videos={publicVideos}
|
|
|
|
| 36 |
|
| 37 |
return (
|
| 38 |
<div className={cn(
|
| 39 |
+
`sm:pr-4`
|
| 40 |
)}>
|
| 41 |
<VideoList
|
| 42 |
videos={publicVideos}
|