From 332351aad2aba613824bf528728342bdb9800962 Mon Sep 17 00:00:00 2001 From: Manuel Ruck Date: Mon, 7 Feb 2022 19:02:34 +0100 Subject: [PATCH] fix paddings --- packages/mobile-app/src/components/misc/Pagination.tsx | 2 +- .../Procedure/components/DeputyVoteResults/Deputy.tsx | 1 + .../Procedure/components/DeputyVoteResults/index.tsx | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/mobile-app/src/components/misc/Pagination.tsx b/packages/mobile-app/src/components/misc/Pagination.tsx index e6bc90b09..19fb62d05 100644 --- a/packages/mobile-app/src/components/misc/Pagination.tsx +++ b/packages/mobile-app/src/components/misc/Pagination.tsx @@ -17,7 +17,7 @@ export const CarouselPagination: React.FC = ({ activeDotIndex={active} containerStyle={{ paddingTop: 10, - paddingBottom: 20, + paddingBottom: 18, }} dotStyle={{ width: 10, diff --git a/packages/mobile-app/src/screens/Bundestag/Procedure/components/DeputyVoteResults/Deputy.tsx b/packages/mobile-app/src/screens/Bundestag/Procedure/components/DeputyVoteResults/Deputy.tsx index 55ba5a4b2..b18df789d 100644 --- a/packages/mobile-app/src/screens/Bundestag/Procedure/components/DeputyVoteResults/Deputy.tsx +++ b/packages/mobile-app/src/screens/Bundestag/Procedure/components/DeputyVoteResults/Deputy.tsx @@ -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': diff --git a/packages/mobile-app/src/screens/Bundestag/Procedure/components/DeputyVoteResults/index.tsx b/packages/mobile-app/src/screens/Bundestag/Procedure/components/DeputyVoteResults/index.tsx index f3dfc3a94..0df988e8b 100644 --- a/packages/mobile-app/src/screens/Bundestag/Procedure/components/DeputyVoteResults/index.tsx +++ b/packages/mobile-app/src/screens/Bundestag/Procedure/components/DeputyVoteResults/index.tsx @@ -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'; @@ -118,7 +118,7 @@ export const DeputyVoteResultSlider: React.FC = ({ )) || []; return ( - <> + = ({ onSnapToItem={setActiveSlide} /> - + ); };