Skip to content

Commit

Permalink
noselection
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Apr 6, 2024
1 parent 47aebdc commit 4188095
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
10 changes: 9 additions & 1 deletion src/common/components/entry-payout/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
}
}

.noselection {
user-select: none; /* standard syntax */
-webkit-user-select: none; /* webkit (safari, chrome) browsers */
-moz-user-select: none; /* mozilla browsers */
-khtml-user-select: none; /* webkit (konqueror) browsers */
-ms-user-select: none; /* IE10+ */
}

.payout-popover-content {
@apply text-sm;

Expand All @@ -47,4 +55,4 @@
.value {
}
}
}
}
4 changes: 2 additions & 2 deletions src/common/components/entry-payout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const EntryPayout = (props: Props) => {
}

return searchPayout <= 0 ? (
<div className="notranslate">
<div className="noselection">
<Popover show={showPopover} setShow={setShowPopover}>
<PopoverContent>
<EntryPayoutDetail {...props} />
Expand All @@ -191,7 +191,7 @@ export const EntryPayout = (props: Props) => {
className={_c(
`entry-payout ${isPayoutDeclined ? "payout-declined" : ""} ${
payoutLimitHit ? "payout-limit-hit" : ""
}`
} notranslate`
)}
>
<FormattedCurrency {...props} value={shownPayout} />
Expand Down
5 changes: 1 addition & 4 deletions src/common/components/entry-vote-btn/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,7 @@ export class EntryVoteBtn extends BaseComponent<Props, State> {
!tipDialog && dialog && this.setState({ dialog: false });
}}
>
<div
className="notranslate entry-vote-btn"
onClick={async () => await this.toggleDialog()}
>
<div className="entry-vote-btn" onClick={async () => await this.toggleDialog()}>
<div className={cls}>
<div className={tooltipClass}>
<span className={voteBtnClass}>{chevronUpSvgForVote}</span>
Expand Down

0 comments on commit 4188095

Please sign in to comment.