Skip to content

Commit 8e7a28a

Browse files
committed
fixed poll vote text styling
1 parent 569f500 commit 8e7a28a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/src/pages/Home.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ const Home = () => {
109109
disabled={areButtonsDisabled}
110110
onClick={() => handleVote(i)}
111111
className={`${isSelected ? "btn" : "btn btn-outline"} inline-block w-auto max-w-none break-words`}
112-
style={{ height: "auto", maxHeight: "none" }}
112+
style={{ height: "auto", maxHeight: "none", justifyContent: "space-between"}}
113113
>
114-
<div className="flex items-center">
114+
<div className="flex items-center" style={{justifyContent: "space-between", width: "100%"}}>
115115
<div className="text-left mr-2">{ans}</div>
116-
<div className={isSelected ? "text-sm text-white" : "p2"}>
116+
<div className={isSelected ? "text-sm text-white whitespace-nowrap" : "p2 whitespace-nowrap"} style={{ textAlign: "center" }}>
117117
{isAdmin || selectedOption !== null ? voteText : ""}
118118
</div>
119119
</div>

0 commit comments

Comments
 (0)