Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap oracle voting option #432

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pages/oracles/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,7 @@ export default function ViewVotingPage() {
</Flex>

<Text
isTruncated
maxW="sm"
maxW="md"
title={value.length > 50 ? value : ''}
>
{value}
Expand Down
2 changes: 1 addition & 1 deletion screens/oracles/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export const VotingOption = React.forwardRef(
title={children.length > 50 ? children : ''}
{...props}
>
<Text maxW="xs" isTruncated>
<Text maxW="md">
{children}
</Text>
</Radio>
Expand Down
5 changes: 2 additions & 3 deletions screens/oracles/containers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1078,14 +1078,13 @@ function VotingResultBar({
textTransform="capitalize"
position="relative"
px={2}
h={6}
py={1}
w="full"
{...props}
>
<Box
borderRadius="md"
bg={isWinner ? 'blue.012' : 'gray.50'}
h={6}
width={percentage > 0 ? `${percentage * 100}%` : 2}
position="absolute"
left={0}
Expand All @@ -1109,7 +1108,7 @@ function VotingResultBar({
{isMine && <OkIcon boxSize={3} />}
</Flex>
)}
<Text isTruncated maxW="sm" title={label.length > 50 ? label : ''}>
<Text maxW="md" title={label.length > 50 ? label : ''}>
{label}
</Text>
</Stack>
Expand Down