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 { .main-container {
height: 100%; border: 2px solid rgba(124, 124, 124, 0.5);
} }
.sidenav-content { .sidenav-content {
height: 100%;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
overflow: hidden;
} }
.sidenav { .sidenav {
padding: 20px; padding: 20px;
border: 1px solid rgba(25, 116, 211, 0.5); border: 1px solid rgba(25, 116, 211, 0.5);
} }
.navToggle-btn { .navToggle-btn {
height: 40px; height: 40px;

View File

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

View File

@ -1,6 +1,7 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
@Component({ @Component({
selector: 'app-root', selector: 'app-root',
templateUrl: `app.component.html`, 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://api.vdk2ch.ru:5000/';
//export const api_endpoint: string = 'http://localhost:7141/'; export const api_endpoint: string = 'http://localhost:7141/';
const ALERT_SHOW_TIME = 5000; const ALERT_SHOW_TIME = 5000;

View File

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

View File

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