mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 18:36:15 -08:00
style: layout improvements for mobile devices
This commit is contained in:
1 parent
6363a78dd7
commit
a0e3e7b12d
8 files changed
+81
-41
No files matched your search
@@ -92,14 +92,17 @@ export class StalkerMainContainerComponent implements OnInit {
|
||||
{
|
||||
contentType: ContentType.ITV,
|
||||
label: 'Live Streams',
|
||||
icon: 'live_tv',
|
||||
},
|
||||
{
|
||||
contentType: ContentType.VODS,
|
||||
label: 'VOD Streams',
|
||||
icon: 'movie',
|
||||
},
|
||||
{
|
||||
contentType: ContentType.SERIES,
|
||||
label: 'Series',
|
||||
icon: 'video_library',
|
||||
},
|
||||
/* {
|
||||
contentType: ContentType.RADIO,
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
:host {
|
||||
margin: 20px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
mat-card-content {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.no-content {
|
||||
text-align: center;
|
||||
|
||||
.icon {
|
||||
font-size: 64px;
|
||||
height: 64px;
|
||||
width: 64px;
|
||||
}
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
|
||||
.category-item {
|
||||
cursor: pointer;
|
||||
width: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
.grid {
|
||||
.category-item {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,40 +49,7 @@ import { PortalStore } from '../portal.store';
|
||||
</div>
|
||||
</ng-template>
|
||||
`,
|
||||
styles: [
|
||||
`
|
||||
:host {
|
||||
margin: 20px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
mat-card-content {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.no-content {
|
||||
text-align: center;
|
||||
|
||||
.icon {
|
||||
font-size: 64px;
|
||||
height: 64px;
|
||||
width: 64px;
|
||||
}
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
|
||||
.category-item {
|
||||
cursor: pointer;
|
||||
width: 200px;
|
||||
}
|
||||
}
|
||||
`,
|
||||
],
|
||||
styleUrl: './category-view.component.scss',
|
||||
imports: [
|
||||
FilterPipe,
|
||||
FormsModule,
|
||||
|
||||
@@ -3,4 +3,5 @@ import { ContentType } from './content-type.enum';
|
||||
export interface ContentTypeNavigationItem {
|
||||
contentType: ContentType;
|
||||
label: string;
|
||||
}
|
||||
icon?: string;
|
||||
}
|
||||
@@ -69,6 +69,13 @@
|
||||
.image,
|
||||
.details {
|
||||
flex: 1 1 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0;
|
||||
|
||||
img {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.details {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<div id="navigation">
|
||||
<button mat-button routerLink="/">
|
||||
<mat-icon>home</mat-icon> Playlists
|
||||
<mat-icon>home</mat-icon>
|
||||
<span class="button-label">{{ 'PLAYLISTS' | translate }}</span>
|
||||
</button>
|
||||
|
||||
<mat-button-toggle-group
|
||||
@@ -17,12 +18,14 @@
|
||||
"
|
||||
[value]="item.contentType"
|
||||
>
|
||||
{{ item.label }}
|
||||
<mat-icon class="icon">{{ item.icon }}</mat-icon>
|
||||
<span class="label">{{ item.label }}</span>
|
||||
</mat-button-toggle>
|
||||
</mat-button-toggle-group>
|
||||
|
||||
<button mat-button (click)="favoritesClicked.emit()">
|
||||
<mat-icon>star</mat-icon> Favorites
|
||||
<mat-icon>star</mat-icon>
|
||||
<span class="button-label">{{ 'CHANNELS.FAVORITES' | translate }}</span>
|
||||
</button>
|
||||
</div>
|
||||
<div id="sub-panel">
|
||||
|
||||
@@ -68,3 +68,22 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
.button-label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#sub-panel {
|
||||
height: auto;
|
||||
padding: 10px 1em;
|
||||
}
|
||||
|
||||
.breadcrumbs {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.label {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { Subject, debounceTime, distinctUntilChanged } from 'rxjs';
|
||||
import { Breadcrumb } from '../breadcrumb.interface';
|
||||
import { ContentTypeNavigationItem } from '../content-type-navigation-item.interface';
|
||||
@@ -17,13 +18,14 @@ import { PortalStore } from '../portal.store';
|
||||
styleUrls: ['./navigation-bar.component.scss'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
FormsModule,
|
||||
MatButtonModule,
|
||||
MatButtonToggleModule,
|
||||
MatIconModule,
|
||||
MatButtonModule,
|
||||
RouterLink,
|
||||
NgFor,
|
||||
FormsModule,
|
||||
NgIf,
|
||||
RouterLink,
|
||||
TranslateModule,
|
||||
],
|
||||
})
|
||||
export class NavigationBarComponent {
|
||||
|
||||
Reference in new issue
Block a user