Skip to content

Commit

Permalink
Fix filter layout in IE #160
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Apr 27, 2020
1 parent 0a0cc5e commit d29fb95
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 20 deletions.
13 changes: 13 additions & 0 deletions doc/browser-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,16 @@ When using CSS Grid, add the following comment at the top of the .scss file to e
```

Checkout the following table for the supported features: https://css-tricks.com/css-grid-in-ie-css-grid-and-the-new-autoprefixer/#article-header-id-1

## Testing with BrowserStack

When testing browser compatiblity with [BrowserStack](https://www.browserstack.com/), consider the following combination of Dev Server and URL to use.

| OS | Browser | Dev Server | URL |
| --------- | --------------------- | ---------------------------- | -------------------------- |
| Windows | Chrome, Firefox, Edge | `npm start` | `http://localhost:4200` |
| Android | Chrome | `npm start` | `http://localhost:4200` |
| Windows | IE11 | `npm run start:es5` | `http://localhost:4200` |
| macOS/iOS | Safari | `npm run start:browserstack` | `http://bs-local.com:8000` |

With all browsers you must store a valid token in localStorage to be able to use the app.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "../../../../bootstrap-variables";
@import "node_modules/bootstrap/scss/mixins";

:host {
display: flex;
Expand All @@ -8,23 +9,20 @@
}

.filters {
display: block;
flex-direction: row;
align-items: flex-end;
display: flex;
flex-wrap: wrap;
}

.form-group {
flex: 1;
min-width: 15rem;
max-width: 30rem;
margin-right: $spacer;
margin-bottom: 0.5rem;
float: left;
margin-bottom: $spacer / 2;
}
.buttons {
flex: none;
margin-top: $font-size-base * $line-height-base + $label-margin-bottom;
margin-right: 0;
padding-top: 31px;
float: left;
margin-bottom: 1rem;
}

.extended-filters-header {
Expand All @@ -35,3 +33,14 @@
color: $body-color;
text-decoration: none;
}

/**
* Wrap button to separate line on small screens
*/
@include media-breakpoint-down(sm) {
.buttons {
width: 100%;
margin-top: $spacer;
margin-bottom: $spacer;
}
}
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
@import "../../../../bootstrap-variables";
@import "node_modules/bootstrap/scss/mixins";

:host {
display: flex;
flex-direction: row;
align-items: flex-end;
flex-direction: column;
padding: $spacer;
border-bottom: 1px solid $border-color;
}

.filters {
display: block;
flex-direction: row;
align-items: flex-end;
display: flex;
flex-wrap: wrap;
}

.form-group {
flex: 1;
min-width: 15rem;
max-width: 30rem;
margin-right: $spacer;
margin-bottom: 0.5rem;
float: left;
margin-bottom: $spacer / 2;
}
.buttons {
flex: none;
margin-top: $font-size-base * $line-height-base + $label-margin-bottom;
margin-right: 0;
padding-top: 31px;
float: left;
margin-bottom: 1rem;
}

/**
* Wrap button to separate line on small screens
*/
@include media-breakpoint-down(sm) {
.buttons {
width: 100%;
margin-top: $spacer;
margin-bottom: $spacer;
}
}

0 comments on commit d29fb95

Please sign in to comment.