Skip to content

Commit

Permalink
UI changes for poll
Browse files Browse the repository at this point in the history
  • Loading branch information
ebedoise committed Aug 2, 2024
1 parent 93400e6 commit cd1b0f1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/poll/src/Choices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ const MobileTitleLayer = styled(Text)`
display: block;
text-align: center;
font-weight: bold;
position: absolute;
bottom: 0;
width: 100%;
}
`;

Expand Down Expand Up @@ -144,16 +141,16 @@ export const Choices = () => {

return (
<>
<Box height="100%" position="relative">
<Box height="100%">
<Box m="auto" position="relative">
<TitleLayer>
<Text color="white" fontWeight="bold" textAlign="center">
{data.poll.title}
</Text>
</TitleLayer>
<ChoicesImage isLocked={isLocked} src={data.poll.image || undefined} />
<MobileTitleLayer>{data.poll.title}</MobileTitleLayer>
</Box>
<MobileTitleLayer>{data.poll.title}</MobileTitleLayer>
<Box marginTop={8} flex={1} display="flex" justifyContent="center" alignItems="center">
{isLocked ? (
<Heading color="grey" textAlign="center" fontSize="x-large">
Expand Down

0 comments on commit cd1b0f1

Please sign in to comment.