diff --git a/js/src/forum/components/Poll/PollOption.tsx b/js/src/forum/components/Poll/PollOption.tsx index 73ca58f3..675d98cf 100644 --- a/js/src/forum/components/Poll/PollOption.tsx +++ b/js/src/forum/components/Poll/PollOption.tsx @@ -54,18 +54,29 @@ export default class PollOption extends Component { const width = this.canSeeVoteCount ? this.percent() : (Number(this.voted) / (this.poll.myVotes()?.length || 1)) * 100; const bar = ( -
+
+ ); return ( diff --git a/resources/less/forum.less b/resources/less/forum.less index 5934ee61..d645da0e 100755 --- a/resources/less/forum.less +++ b/resources/less/forum.less @@ -259,6 +259,14 @@ gap: 10px; align-items: flex-start; + &:hover { + cursor: pointer; + } + + .PollAnswer-input[disabled] { + cursor: not-allowed; + } + .PollAnswer-checkbox { grid-column: 1; grid-row: 1; @@ -325,14 +333,11 @@ &:checked ~ .checkmark:after { display: block; } - - &[disabled] ~ .checkmark { - cursor: not-allowed; - } } .checkmark { - position: absolute; + position: relative; + display: block; top: 0; left: 0; height: 20px; @@ -488,12 +493,10 @@ } .PollOption { - display: flex; position: relative; padding: 10px; background: var(--body-bg); border-radius: 4px; - cursor: pointer; &:hover { background: var(--control-bg-light);