Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit d52a344

Browse files
committed
Make toolbar layout flexible
1. Do not wrap toolbar buttons in small screen 2. Show title as wide as possible in large screen
1 parent c059292 commit d52a344

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/Styles.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,24 +125,25 @@ const styles = {
125125
top : 0,
126126
right : 0,
127127
height : toolbarHeight,
128+
display : 'flex',
129+
justifyContent : 'space-between',
128130
},
129131
toolbarSide: {
130-
lineHeight : toolbarHeight,
131-
position : 'absolute',
132-
top : 0,
133-
bottom : 0,
134-
margin : 0,
135-
maxWidth : '48%',
132+
height : toolbarHeight,
133+
margin: 0,
134+
padding: 0,
136135
},
137136
toolbarLeftSide: {
138137
paddingLeft : '20px',
139138
paddingRight : 0,
140-
left : 0,
139+
flex : '0 1 auto',
140+
overflow : 'hidden',
141+
textOverflow : 'ellipsis',
141142
},
142143
toolbarRightSide: {
143144
paddingLeft : 0,
144145
paddingRight : '20px',
145-
right : 0,
146+
flex : '0 0 auto',
146147
},
147148
toolbarItem: {
148149
display : 'inline-block',

0 commit comments

Comments
 (0)