File tree Expand file tree Collapse file tree 2 files changed +19
-17
lines changed
Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments