Move sidebar content into tabs

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent f4988efb7e
commit b81a83a328

@ -47,6 +47,7 @@ import {MatTooltipModule} from "@angular/material/tooltip";
import {MatMenuModule} from "@angular/material/menu"; import {MatMenuModule} from "@angular/material/menu";
import { ConfirmDialogComponent } from './components/confirm-dialog/confirm-dialog.component'; import { ConfirmDialogComponent } from './components/confirm-dialog/confirm-dialog.component';
import { FilesTabSidebarComponent } from './pages/home/files-tab/files-tab-sidebar/files-tab-sidebar.component'; import { FilesTabSidebarComponent } from './pages/home/files-tab/files-tab-sidebar/files-tab-sidebar.component';
import {MatExpansionModule} from "@angular/material/expansion";
@NgModule({ @NgModule({
declarations: [ declarations: [
@ -100,6 +101,7 @@ import { FilesTabSidebarComponent } from './pages/home/files-tab/files-tab-sideb
MatSliderModule, MatSliderModule,
MatTooltipModule, MatTooltipModule,
MatMenuModule, MatMenuModule,
MatExpansionModule,
], ],
providers: [], providers: [],
bootstrap: [AppComponent] bootstrap: [AppComponent]

@ -1,5 +1,8 @@
<div fxLayout="column" class="sidebar-inner"> <div class="sidebar-inner">
<div id="file-search-input" fxFlex="220px"> <mat-tab-group headerPosition="below">
<mat-tab label="Search">
<div class="search-tab-inner" fxLayout="column">
<div id="file-search-input" >
<app-file-search #filesearch (searchStartEvent)="this.searchStartEvent.emit()" <app-file-search #filesearch (searchStartEvent)="this.searchStartEvent.emit()"
(searchEndEvent)="this.searchEndEvent.emit()" [validTags]="this.getValidTagsForSearch()"></app-file-search> (searchEndEvent)="this.searchEndEvent.emit()" [validTags]="this.getValidTagsForSearch()"></app-file-search>
</div> </div>
@ -13,3 +16,6 @@
</mat-selection-list> </mat-selection-list>
</div> </div>
</div> </div>
</mat-tab>
</mat-tab-group>
</div>

@ -1,19 +1,30 @@
#file-search-input { app-file-search {
display: block;
width: 100%; width: 100%;
overflow: hidden;
} }
app-file-search { #file-search-input {
display: block;
width: 100%; width: 100%;
overflow: hidden;
} }
#file-tag-list { #file-tag-list {
height: 100%; height: 100%;
overflow-y: auto; overflow-y: auto;
width: 100%;
}
mat-tab-group, mat-tab {
height: 100%;
width: 100%;
}
mat-selection-list {
height: 100%;
user-select: none;
} }
.sidebar-inner { .sidebar-inner, .search-tab-inner {
height: 100%; height: 100%;
width: 100%; width: 100%;
display: block; display: block;

@ -16,13 +16,14 @@ mat-drawer-content {
mat-drawer-container { mat-drawer-container {
height: 100%; height: 100%;
overflow: hidden;
} }
app-file-grid { app-file-grid {
padding: 0; padding: 0;
} }
app-file-gallery { app-file-gallery, app-files-tab-sidebar {
padding: 0; padding: 0;
height: 100%; height: 100%;
width: 100%; width: 100%;

Loading…
Cancel
Save