Skip to content

Commit

Permalink
fix paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Ruck authored and ManAnRuck committed Feb 20, 2022
1 parent fa85808 commit 332351a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/mobile-app/src/components/misc/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const CarouselPagination: React.FC<PaginationProps> = ({
activeDotIndex={active}
containerStyle={{
paddingTop: 10,
paddingBottom: 20,
paddingBottom: 18,
}}
dotStyle={{
width: 10,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const TextLighGrey = styled(Text)`
const Decision = styled.Text<{ decision: string | null }>`
font-size: 21px;
padding-top: 14px;
padding-bottom: 3px;
color: ${({ decision }) => {
switch (decision) {
case 'YES':
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useContext, useEffect } from 'react';
import { Dimensions, ScaledSize } from 'react-native';
import { Dimensions, ScaledSize, View } from 'react-native';
import Carousel from 'react-native-snap-carousel';

import Folding from '@democracy-deutschland/mobile-ui/src/components/shared/Folding';
Expand Down Expand Up @@ -118,7 +118,7 @@ export const DeputyVoteResultSlider: React.FC<Props> = ({
)) || [];

return (
<>
<View style={{ marginBottom: -18, marginTop: 10 }}>
<SwiperStyled
data={screens}
renderItem={renderItem}
Expand All @@ -127,7 +127,7 @@ export const DeputyVoteResultSlider: React.FC<Props> = ({
onSnapToItem={setActiveSlide}
/>
<CarouselPagination length={screens.length} active={activeSlide} />
</>
</View>
);
};

Expand Down

0 comments on commit 332351a

Please sign in to comment.