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 55df6e2 commit 93400e6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/poll/src/Choices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const MobileTitleLayer = styled(Text)`
display: block;
text-align: center;
font-weight: bold;
position: absolute;
bottom: 0;
width: 100%;
}
`;

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

return (
<>
<Box height="100%">
<Box height="100%" position="relative">
<Box m="auto" position="relative">
<ChoicesImage isLocked={isLocked} src={data.poll.image || undefined} />
<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>
<Box marginTop={8} flex={1} display="flex" justifyContent="center" alignItems="center">
Expand Down

0 comments on commit 93400e6

Please sign in to comment.