Skip to content

Commit

Permalink
fix(toolbar): add a min-width to the toolbar content so that it won't…
Browse files Browse the repository at this point in the history
… overlap buttons

fixes #5657
  • Loading branch information
brandyscarney committed Mar 1, 2016
1 parent 5ca2a55 commit 5fb1e08
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
18 changes: 17 additions & 1 deletion ionic/components/toolbar/test/scenarios/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
<ion-title>This is the title that never ends. It just goes on and on my friend.</ion-title>
</ion-toolbar>

<ion-toolbar>
<ion-buttons start>
<button>
<ion-icon name="contact"></ion-icon>
</button>
<button>
<ion-icon name="search"></ion-icon>
</button>
</ion-buttons>
<ion-buttons end>
<button secondary>
<ion-icon name="more"></ion-icon>
</button>
</ion-buttons>
<ion-title>This is a long title with buttons. It just goes on and on my friend.</ion-title>
</ion-toolbar>

<ion-toolbar>
<ion-buttons start>
Expand Down Expand Up @@ -207,4 +223,4 @@
.toolbar {
border-bottom: 1px solid black;
}
</style>
</style>
1 change: 1 addition & 0 deletions ionic/components/toolbar/toolbar.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ ion-navbar-section {
.toolbar-content {
flex: 1;
order: map-get($toolbar-order-ios, content);
min-width: 0;
}

.toolbar-title {
Expand Down
1 change: 1 addition & 0 deletions ionic/components/toolbar/toolbar.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ ion-navbar-section {
flex: 1;
order: map-get($toolbar-order-md, content);
max-width: 100%;
min-width: 0;
}

.toolbar-title {
Expand Down

0 comments on commit 5fb1e08

Please sign in to comment.