Widen CW click area

This commit is contained in:
Claire 2024-10-16 14:34:07 +02:00
parent 640f4bfdfc
commit a02c396075
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,7 @@ export const StatusBanner: React.FC<{
expanded?: boolean; expanded?: boolean;
onClick?: () => void; onClick?: () => void;
}> = ({ children, variant, expanded, onClick }) => ( }> = ({ children, variant, expanded, onClick }) => (
<div <label
className={ className={
variant === BannerVariant.Warning variant === BannerVariant.Warning
? 'content-warning' ? 'content-warning'
@ -33,5 +33,5 @@ export const StatusBanner: React.FC<{
/> />
)} )}
</button> </button>
</div> </label>
); );

View File

@ -11109,6 +11109,7 @@ noscript {
} }
.content-warning { .content-warning {
display: block;
box-sizing: border-box; box-sizing: border-box;
background: rgba($ui-highlight-color, 0.05); background: rgba($ui-highlight-color, 0.05);
color: $secondary-text-color; color: $secondary-text-color;
@ -11118,6 +11119,7 @@ noscript {
position: relative; position: relative;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
cursor: pointer;
p { p {
margin-bottom: 8px; margin-bottom: 8px;