diff --git a/components/brave_extension/extension/brave_extension/components/display.ts b/components/brave_extension/extension/brave_extension/components/display.ts index b3e623c2ef90..6c0537059b27 100644 --- a/components/brave_extension/extension/brave_extension/components/display.ts +++ b/components/brave_extension/extension/brave_extension/components/display.ts @@ -93,7 +93,7 @@ export const BlockedInfoRowText = styled<{}, 'span'>('span')` box-sizing: border-box; font-size: 12px; font-weight: 500; - line-height: 1; + line-height: 1.2; color: ${p => p.theme.color.text}; ` @@ -162,7 +162,7 @@ export const LinkAction = styled(Link)` font-size: ${p => p.size === 'small' && '12px' || 'inherit'}; line-height: ${p => p.size === 'small' && '1'}; font-weight: 500; - z-index: 2; + z-index: ${p => p.size === 'small' ? '1' : '2'}; &:focus { outline-offset: initial; diff --git a/components/brave_extension/extension/brave_extension/components/structure/index.ts b/components/brave_extension/extension/brave_extension/components/structure/index.ts index e50dca31bc22..96d3cac5f723 100644 --- a/components/brave_extension/extension/brave_extension/components/structure/index.ts +++ b/components/brave_extension/extension/brave_extension/components/structure/index.ts @@ -97,15 +97,10 @@ export const SiteInfo = styled<{}, 'div'>('div')` * Interface/privacy Rows */ -interface BlockedInfoRowProps { - extraColumn?: boolean -} - -export const BlockedInfoRow = styled('div')` +export const BlockedInfoRow = styled<{}, 'div'>('div')` box-sizing: border-box; display: grid; - grid-template-columns: ${p => p.extraColumn ? '1fr auto auto' : '1fr auto'}; - grid-gap: ${p => p.extraColumn ? '4px' : '0'}; + grid-template-columns: 1fr auto; align-items: center; color: ${p => p.theme.color.text}; user-select: none; @@ -126,7 +121,7 @@ export const BlockedInfoRow = styled('div')` } ` -export const BlockedInfoRowDetails = styled('details')` +export const BlockedInfoRowDetails = styled<{}, 'details'>('details')` box-sizing: border-box; ` diff --git a/components/brave_extension/extension/brave_extension/containers/advancedView/controls/scriptsControl.tsx b/components/brave_extension/extension/brave_extension/containers/advancedView/controls/scriptsControl.tsx index a9d8539bf625..b1b1bf9cacd8 100644 --- a/components/brave_extension/extension/brave_extension/containers/advancedView/controls/scriptsControl.tsx +++ b/components/brave_extension/extension/brave_extension/containers/advancedView/controls/scriptsControl.tsx @@ -124,7 +124,7 @@ export default class ScriptsControls extends React.PureComponent { const { scriptsBlockedOpen } = this.state return ( <> - + { > {this.javascriptBlockedDisplay} - {getLocale('scriptsBlocked')} + + {getLocale('scriptsBlocked')} +   + { + this.shouldDisableResourcesRow === false + && ( + + {getLocale('allowScriptsOnce')} + + ) + } + - { - this.shouldDisableResourcesRow === false - && ( - - {getLocale('allowScriptsOnce')} - - ) - }