Skip to content

Commit

Permalink
home screen alignment
Browse files Browse the repository at this point in the history
remove extra align-items

alignment fix
  • Loading branch information
priyanshunayan authored and Pipe-Runner committed Aug 27, 2019
1 parent b2bb658 commit 71fef56
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/screen/Home/components/InstrumentCard.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const CustomCard = styled.div`
display: flex;
width: 48em;
height: 26em;
margin-right:1em;
transition-timing-function: ease-in-out;
transition-duration: 200ms;
border-radius: 8px;
Expand Down
6 changes: 0 additions & 6 deletions src/screen/Home/components/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ const Tabs = () => {
description={'Allows observation of varying signal voltages'}
redirectPath={'/oscilloscope'}
/>
</TabsWrapper>
<TabsWrapper>
<InstrumentCard
icon={<LogicAnalyserIcon size={'10em'} />}
title={'Logic Analyser'}
Expand All @@ -42,8 +40,6 @@ const Tabs = () => {
description={'Generates arbitrary analog and digital waveforms'}
redirectPath={'/wavegenerator'}
/>
</TabsWrapper>
<TabsWrapper>
<InstrumentCard
icon={<PowerSourceIcon size={'10em'} />}
title={'Power Source'}
Expand All @@ -62,8 +58,6 @@ const Tabs = () => {
}
redirectPath={'/multimeter'}
/>
</TabsWrapper>
<TabsWrapper>
<InstrumentCard
icon={<SensorsIcon size={'10em'} />}
title={'Sensors'}
Expand Down
5 changes: 4 additions & 1 deletion src/screen/Home/components/Tabs.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ export const TabsContainer = styled.div`

export const TabsWrapper = styled.div`
margin: 16px 16px 0px 0px;
width: 98em;
display: flex;
justify-content: flex-start;
align-items: center;
`;

export const TabsRow = styled.div`
display: flex;
justify-content: center;
align-items: center;
`;

0 comments on commit 71fef56

Please sign in to comment.