Skip to content

Commit

Permalink
Fixed dashboard mobile view (#1891)
Browse files Browse the repository at this point in the history
* fixed dashboard mobile view

* fixed dashboard mobile view

* fixed review comments
  • Loading branch information
mishramonalisha76 authored Oct 3, 2024
1 parent 4b633d6 commit b87a7ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/blocks/tabs/Tabs.styled.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Tabs as ReachTabs, TabList, Tab } from '@reach/tabs';
import { textVariants } from '../text';
import styled from 'styled-components';
import { deviceMediaQ } from '../theme';

export const StyledFillTabs = styled(ReachTabs)`
display: flex;
Expand All @@ -12,6 +13,9 @@ export const StyledFillTabList = styled(TabList)`
overflow: auto hidden;
display: flex;
width: fit-content;
@media${deviceMediaQ.mobileL} {
width: -webkit-fill-available;
}
padding: var(--spacing-xxxs);
background-color: var(--surface-secondary);
border-radius: var(--radius-sm);
Expand Down
5 changes: 2 additions & 3 deletions src/modules/dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ const Dashboard: FC<DashboardProps> = () => {
<Box
flexDirection="column"
display="flex"
margin={{ initial: 'spacing-sm spacing-xl spacing-sm spacing-xl', ml: 'spacing-sm', lp: 'spacing-sm' }}
width={{ initial: '100%', ml: '357px' }}
margin="spacing-sm spacing-none"
gap={{ ml: 'spacing-md' }}
height="100%"
width="auto"
>
<DashboardHeader
showSubHeader={showSubHeader}
Expand All @@ -34,7 +34,6 @@ const Dashboard: FC<DashboardProps> = () => {
display="flex"
flexDirection="column"
gap="spacing-md"
width={{ mm: '340px' }}
>
<FeaturedChannels />
<ChannelVariantsSection />
Expand Down

0 comments on commit b87a7ea

Please sign in to comment.