Skip to content

Commit bbaf6e4

Browse files
committed
fix(docs): Fix demo-browser in responsive case
1 parent 48f2da4 commit bbaf6e4

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

projects/ngqp-demo/src/app/shared/demo-browser/demo-browser.component.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<div class="demo-browser__toolbar">
2-
<button class="demo-browser__button" title="{{ routerAdapter.history.length }} previous route(s)"
3-
(click)="routerAdapter.goBack()" [disabled]="routerAdapter.history.length === 0">
4-
<fa-icon [icon]="faArrowLeft" size="1x"></fa-icon>
5-
</button>
2+
<div class="demo-browser__buttons">
3+
<button class="demo-browser__button" title="{{ routerAdapter.history.length }} previous route(s)"
4+
(click)="routerAdapter.goBack()" [disabled]="routerAdapter.history.length === 0">
5+
<fa-icon [icon]="faArrowLeft" size="1x"></fa-icon>
6+
</button>
7+
</div>
68

79
<div class="demo-browser__url">
810
<span class="demo-browser__url__domain" (click)="urlInput.focus()">https://www.app.io</span>

projects/ngqp-demo/src/app/shared/demo-browser/demo-browser.component.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ $panel-content-height: 27px;
3939
// box-shadow: -1px 1px 2px rgba(0, 0, 0, .1);
4040
}
4141

42-
&__button {
43-
flex-grow: 0;
42+
&__buttons {
43+
flex: 0;
4444
}
4545

4646
&__url {
47-
flex-grow: 1;
47+
flex: 1;
48+
width: 100%;
4849

4950
font-family: var(--font-family-sans-serif);
5051
font-size: 14px;
@@ -63,14 +64,15 @@ $panel-content-height: 27px;
6364
align-items: center;
6465

6566
&__domain {
66-
flex-grow: 0;
67+
flex: 0;
6768

6869
vertical-align: middle;
6970
color: #9e9e9e;
7071
}
7172

7273
&__input {
73-
flex-grow: 1;
74+
flex: 1;
75+
width: 100%;
7476

7577
border: none;
7678
outline: none;

0 commit comments

Comments
 (0)