Fixed scroll
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
RakVhalate 2022-12-04 04:39:18 +10:00
parent ccef7fb86f
commit d0815b5772
6 changed files with 17 additions and 10 deletions

View File

@ -1,18 +1,18 @@
.main-container {
height: 100%;
border: 2px solid rgba(124, 124, 124, 0.5);
}
.sidenav-content {
height: 100%;
align-items: center;
justify-content: center;
overflow: hidden;
}
.sidenav {
padding: 20px;
border: 1px solid rgba(25, 116, 211, 0.5);
}
.navToggle-btn {
height: 40px;

View File

@ -1,6 +1,5 @@
<div>
<h1>Welcome, traveler.</h1>
<mat-drawer-container class="main-container" [autosize]="true">
<mat-drawer #drawer class="sidenav" mode="side" [mode]="'push'">
<app-nav-bar></app-nav-bar>
@ -9,7 +8,7 @@
<button type="button" class = "navToggle-btn btn-14" (click)="drawer.toggle()">
Отобразить панель навигации
</button>
<router-outlet></router-outlet>
</div>
<router-outlet></router-outlet>
</mat-drawer-container>
</div>

View File

@ -1,6 +1,7 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: `app.component.html`,

View File

@ -1,5 +1,5 @@
export const api_endpoint: string = 'http://api.vdk2ch.ru:5000/';
//export const api_endpoint: string = 'http://localhost:7141/';
//export const api_endpoint: string = 'http://api.vdk2ch.ru:5000/';
export const api_endpoint: string = 'http://localhost:7141/';
const ALERT_SHOW_TIME = 5000;

View File

@ -4,7 +4,7 @@
<a routerLink = "about">О нас </a>
<br>
Доски:
<div>
<a *ngFor="let board of boardsToList" routerLink = "threads" title="{{board.BoardExplainedName}}">{{board.BoardName}}</a>
<div *ngFor="let board of boardsToList">
<a routerLink = "threads" title="{{board.BoardExplainedName}}">{{board.BoardName}}</a>
</div>
</nav>

View File

@ -49,7 +49,14 @@ export class ApiChatService {
BoardID: 228,
ThreadCount: 4,
PostCount: 4445
}
},
{
BoardName: 'vdk',
BoardExplainedName: 'Здесь живут тигры',
BoardID: 223,
ThreadCount: 1,
PostCount: 245
}
]
getBoards(): Board[] {