Skip to content

Commit

Permalink
fix(ui): responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
sawaYch committed Mar 7, 2024
1 parent 0010c5d commit b9e7e57
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/livestream-metadata-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const LiveStreamMetadataCard = () => {
return (
<>
<BrowserView>
<Card className='flex flex-col items-center justify-center'>
<Card className='flex h-full flex-col items-center justify-center'>
<CardContent className='flex flex-col items-center justify-center gap-8 p-4'>
<Image
src={liveMetadata?.thumbnail ?? ''}
Expand Down
6 changes: 3 additions & 3 deletions components/poll-app-core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ const PollAppCore = () => {
{isReady && (
<>
<div
className={cn('flex flex-col', {
'flex-row space-x-2': !isMobile,
'space-y-2': isMobile,
className={cn('flex', {
'space-x-2': !isMobile,
'flex-col space-y-2': isMobile,
})}
>
<LiveStreamMetadataCard />
Expand Down
39 changes: 39 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"dayjs": "^1.11.10",
"framer-motion": "^11.0.8",
"lucide-react": "^0.343.0",
"next": "14.1.0",
"next-themes": "^0.2.1",
Expand Down

0 comments on commit b9e7e57

Please sign in to comment.