Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 78b8e96

Browse files
committed
Merge pull request #14563 from brave/fix/14553-tab-session-indicator-overlap
Style tab session number indicator so there is no overlap
1 parent fad0961 commit 78b8e96

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/renderer/components/tabs/content/newSessionIcon.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const frameStateUtil = require('../../../../../js/state/frameStateUtil')
2020
const globalStyles = require('../../styles/global')
2121
const {opacityIncreaseElementKeyframes} = require('../../styles/animations')
2222
const {theme} = require('../../styles/theme')
23+
require('../../../../../fonts/poppins.css')
2324

2425
const newSessionSvg = require('../../../../extensions/brave/img/tabs/new_session.svg')
2526

@@ -125,9 +126,8 @@ const styles = StyleSheet.create({
125126
},
126127

127128
icon_newSession__name: {
128-
marginLeft: '4px',
129-
fontSize: '11px',
130-
fontWeight: 'bold',
129+
marginLeft: '6px',
130+
font: '600 9px/0 Poppins, sans-serif',
131131
color: theme.tab.icon.symbol.color
132132
}
133133
})

test/unit/app/renderer/components/tabs/content/newSessionIconTest.js

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ describe('Tabs content - NewSessionIcon', function () {
7171
})
7272
mockery.registerMock('electron', fakeElectron)
7373
mockery.registerMock('../../../../extensions/brave/img/tabs/new_session.svg')
74+
mockery.registerMock('../../../../../fonts/poppins.css')
7475
windowStore = require('../../../../../../../js/stores/windowStore')
7576
appStore = require('../../../../../../../js/stores/appStoreRenderer')
7677
NewSessionIcon = require('../../../../../../../app/renderer/components/tabs/content/newSessionIcon')

0 commit comments

Comments
 (0)