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

Commit 2a58044

Browse files
authored
Merge pull request #7 from ohtake/flexible-toolbar
Make toolbar layout flexible
2 parents c059292 + 1f75f5b commit 2a58044

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Styles.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,24 +125,24 @@ 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,
136134
},
137135
toolbarLeftSide: {
138136
paddingLeft : '20px',
139137
paddingRight : 0,
140-
left : 0,
138+
flex : '0 1 auto',
139+
overflow : 'hidden',
140+
textOverflow : 'ellipsis',
141141
},
142142
toolbarRightSide: {
143143
paddingLeft : 0,
144144
paddingRight : '20px',
145-
right : 0,
145+
flex : '0 0 auto',
146146
},
147147
toolbarItem: {
148148
display : 'inline-block',

0 commit comments

Comments
 (0)