Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
fxFlexFill
gdAreas="header | main "
gdGap="0px"
gdRows="64px auto"
gdRows="15% auto"
gdAreas.lt-md="header | main "
gdRows.lt-md="64px auto "
gdRows.lt-md="15% auto "
gdColumns.lt-md="100% 100% "
gdAreas.xs="header | main "
gdRows.xs="64px 100% "
gdRows.xs="15% auto"
gdColumns.xs="100% 100% "
>
<ngcommunity-header gdArea="header"></ngcommunity-header>
<ngcommunity-main
*ngIf="(communitie$ | async) as communities"
*ngIf="communitie$ | async as communities"
gdArea="main"
[communities]="communities"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div fxLayout="column">
<div fxLayout="column" style="height: 100%">
<mat-form-field>
<input
placeholder="Search communities"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ div {
.community-preview-list-container {
display: flex;
flex-direction: column;
height: calc(100vh - 210px);
padding: 20px;
height: 100%;
padding: 10px 20px;
word-break: break-word;
}

.community-preview-list-view-port {
Expand All @@ -19,9 +20,3 @@ mat-form-field {
margin-top: 20px;
padding: 10px;
}

@media (max-width: 599px) {
.community-preview-list-container {
height: calc(100vh - 434px);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</mat-sidenav-content>
<ng-template #search class="content">
<mat-sidenav-content>
<ngcommunity-preview (selected)="onSelected($event)" [communities]="communities">
<ngcommunity-preview (selected)="onSelected($event)" [communities]="communities" style="height: 100%">
</ngcommunity-preview>
</mat-sidenav-content>
</ng-template>
Expand Down
11 changes: 4 additions & 7 deletions src/app/pages/main/components/sidenav/sidenav.component.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
mat-sidenav-content {
height: calc(100vh - 64px);
height: 100%;
width: 100%;
display: flex;
flex-flow: column;
}

mat-sidenav-container {
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 599px) {
mat-sidenav-content {
height: calc(100vh - 222px);
}
}

div {
font-size: 19px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ img {
border-radius: 10px;
margin-bottom: 13px;
padding: 10px 5px 10px 5px;
height: fit-content;
min-height: 150px;
&:hover {
cursor: pointer;
background-color: #f5f5f5;
Expand Down
6 changes: 6 additions & 0 deletions src/app/shared/components/header/header.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@ img {
}

.main-header {
width: 100%;
height: 100%;
min-height: 40px;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.main-header-content {
height: 100%;
}