diff --git a/src/utils/CheckBox.tsx b/src/utils/CheckBox.tsx index 4c7338a..8fd5398 100644 --- a/src/utils/CheckBox.tsx +++ b/src/utils/CheckBox.tsx @@ -8,7 +8,7 @@ interface Props { onChange: (checked: boolean) => void; } -const Container = styled.div<{ disabled?: boolean }>` +const Container = styled.label<{ disabled?: boolean }>` display: flex; color: rgba(255, 255, 255, ${(props) => (props.disabled ? 0.5 : 1)}); `; @@ -30,9 +30,20 @@ export default class CheckBox extends React.Component { return ( !disabled && onChange(!checked)} + onDoubleClick={(event) => { + // prevent Twitch fullscreen when clicked + event.stopPropagation(); + }} disabled={disabled} > - {checked ? "✔" : ""} + + {checked ? "✔" : ""} + {label} );