Skip to content

Commit

Permalink
Styles & readded router to fix unexplainable problem... :/
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsEcholot committed Sep 3, 2018
1 parent 2f1160a commit 3fb2572
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend-app/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
</ngb-progressbar>
</div>

<app-home *ngIf="!mqttConnecting"></app-home>
<router-outlet *ngIf="!mqttConnecting"></router-outlet>
4 changes: 4 additions & 0 deletions frontend-app/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { library } from '@fortawesome/fontawesome-svg-core';
import { NgbModule, NgbDropdown, NgbAccordion } from '@ng-bootstrap/ng-bootstrap';
import { DndModule } from 'ngx-drag-drop';
import { RouterModule } from '@angular/router';

import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
Expand Down Expand Up @@ -39,6 +40,9 @@ library.add(faPlay, faPause, faStop, faCheckCircle, faTimesCircle, faVolumeUp);
FormsModule,
FontAwesomeModule,
NgbModule.forRoot(),
RouterModule.forRoot([
{ path: '', component: HomeComponent }
]),
DndModule
],
providers: [
Expand Down
5 changes: 5 additions & 0 deletions frontend-app/src/app/media/media.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/deep/ ngb-accordion .card-header {
padding: 0.2rem 1.25rem;
}

/deep/ ngb-accordion .card {
margin-bottom: 1rem;
border-radius: 0.25rem !important;
}
6 changes: 6 additions & 0 deletions frontend-app/src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/* You can add global styles to this file, and also import other style files */
$container-max-widths: (
sm: 95%,
md: 95%,
lg: 95%,
xl: 95%
);
@import '~bootstrap/scss/bootstrap';

.media {
Expand Down

0 comments on commit 3fb2572

Please sign in to comment.