Skip to content

Commit

Permalink
Merge pull request #6097 from brave/fix-10757
Browse files Browse the repository at this point in the history
Fixes movement inside the more cards NTP settings section when interacting
  • Loading branch information
ryanml authored Jul 17, 2020
2 parents 3582cbb + 2deca97 commit e9e71a7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
10 changes: 10 additions & 0 deletions components/brave_new_tab_ui/components/default/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,4 +335,14 @@ export const StyledButtonIcon = styled<{}, 'div'>('div')`
display: inline-block;
vertical-align: sub;
margin-right: 5px;
height: 20px;
width: 20px;
`

export const StyledButtonLabel = styled<{}, 'span'>('span')`
max-width: 100px;
text-overflow: ellipsis;
display: inline-block;
overflow: hidden;
white-space: nowrap;
`
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import {
StyledWidgetToggle,
SettingsWidget,
StyledButtonIcon,
StyledWidgetSettings
StyledWidgetSettings,
StyledButtonLabel
} from '../../../components/default'
import togetherBanner from './assets/bravetogether.png'
import binanceBanner from './assets/binance.png'
Expand Down Expand Up @@ -55,11 +56,13 @@ class MoreCardsSettings extends React.PureComponent<Props, {}> {
: <AddIcon />
}
</StyledButtonIcon>
{
on
? getLocale('hideWidget')
: getLocale('addWidget')
}
<StyledButtonLabel>
{
on
? getLocale('hideWidget')
: getLocale('addWidget')
}
</StyledButtonLabel>
</StyledWidgetToggle>
)
}
Expand Down

0 comments on commit e9e71a7

Please sign in to comment.