Skip to content

Commit 1aa2f33

Browse files
committed
feat: Sidebar mobile styling
1 parent e6a8261 commit 1aa2f33

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

apps/web/app/s/[videoId]/Share.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const Share: React.FC<ShareProps> = ({
9898
<div className="mt-4">
9999
<div className="flex flex-col lg:flex-row gap-4">
100100
<div className="flex-1">
101-
<div className="relative aspect-video new-card-style p-3">
101+
<div className="relative aspect-video new-card-style p-3 overflow-hidden">
102102
<ShareVideo
103103
data={data}
104104
user={user}

apps/web/app/s/[videoId]/_components/Sidebar.tsx

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const Sidebar: React.FC<SidebarProps> = ({
112112
};
113113

114114
return (
115-
<div className="new-card-style overflow-hidden h-full flex flex-col lg:aspect-video">
115+
<div className="new-card-style overflow-hidden h-[calc(100vh-16rem)] lg:h-full flex flex-col lg:aspect-video">
116116
<div className="flex-none">
117117
<div className="flex border-b border-gray-200">
118118
{tabs.map((tab) => (
@@ -151,21 +151,23 @@ export const Sidebar: React.FC<SidebarProps> = ({
151151
))}
152152
</div>
153153
</div>
154-
<div className="flex-1 min-h-0 relative">
155-
<AnimatePresence initial={false} custom={direction}>
156-
<TabContent
157-
key={activeTab}
158-
custom={direction}
159-
variants={tabVariants}
160-
initial="enter"
161-
animate="center"
162-
exit="exit"
163-
transition={tabTransition}
164-
className="absolute inset-0"
165-
>
166-
{renderTabContent()}
167-
</TabContent>
168-
</AnimatePresence>
154+
<div className="flex-1 min-h-0">
155+
<div className="h-full relative overflow-hidden">
156+
<AnimatePresence initial={false} custom={direction}>
157+
<TabContent
158+
key={activeTab}
159+
custom={direction}
160+
variants={tabVariants}
161+
initial="enter"
162+
animate="center"
163+
exit="exit"
164+
transition={tabTransition}
165+
className="absolute inset-0 overflow-auto"
166+
>
167+
<div className="h-full">{renderTabContent()}</div>
168+
</TabContent>
169+
</AnimatePresence>
170+
</div>
169171
</div>
170172
</div>
171173
);

0 commit comments

Comments
 (0)