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

Fix/long option is truncated with ellipsis #68

Merged
merged 10 commits into from
Mar 13, 2024
1 change: 1 addition & 0 deletions src/cards/PollCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ export default class PollCard extends BaseCard {
decoratedText: {
bottomLabel: `${progressBar} ${voteCount}`,
text: text,
wrapText: true,
button: voteButton,
},
};
Expand Down
1 change: 1 addition & 0 deletions src/cards/PollDialogCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default class PollDialogCard extends PollCard {
decoratedText: {
'bottomLabel': `${progressBar} ${voteCount}`,
'text': text,
'wrapText': true,
'switchControl': voteSwitch,
},
};
Expand Down
5 changes: 5 additions & 0 deletions tests/json/vote_card.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"decoratedText": {
"bottomLabel": " 0",
"text": "Feather Duster Worm",
"wrapText": true,
"button": {
"text": "vote",
"onClick": {
Expand All @@ -37,6 +38,7 @@
"decoratedText": {
"bottomLabel": " 0",
"text": "Christmas Tree Worm",
"wrapText": true,
"button": {
"text": "vote",
"onClick": {
Expand All @@ -63,6 +65,7 @@
"decoratedText": {
"bottomLabel": "██████████████████ 2",
"text": "Coco Worm",
"wrapText": true,
"button": {
"text": "vote",
"onClick": {
Expand Down Expand Up @@ -94,6 +97,7 @@
"decoratedText": {
"bottomLabel": "██████████████████ 2",
"text": "Bearded Fireworm",
"wrapText": true,
"button": {
"text": "vote",
"onClick": {
Expand Down Expand Up @@ -123,6 +127,7 @@
"decoratedText": {
"bottomLabel": " 0",
"text": "Giant Tube Worm",
"wrapText": true,
"button": {
"text": "vote",
"onClick": {
Expand Down
Loading