Fix privacy warning position on mobile

This commit is contained in:
Chocobozzz 2019-04-15 09:43:23 +02:00
parent f3d2e6d082
commit 28e0e40d2b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
6 changed files with 23 additions and 7 deletions

View File

@ -6,5 +6,9 @@
"/static": { "/static": {
"target": "http://localhost:9000", "target": "http://localhost:9000",
"secure": false "secure": false
},
"/socket.io": {
"target": "http://localhost:9000",
"secure": false
} }
} }

View File

@ -11,6 +11,7 @@
.log-row { .log-row {
margin-top: 1px; margin-top: 1px;
word-break: break-word;
&:hover { &:hover {
background: rgba(0, 0, 0, 0.07); background: rgba(0, 0, 0, 0.07);

View File

@ -106,6 +106,6 @@ export class LogsComponent implements OnInit {
} }
] ]
this.level = 'info' this.level = 'warn'
} }
} }

View File

@ -1,4 +1,4 @@
import { Component, ElementRef, Input, OnInit } from '@angular/core' import { ChangeDetectionStrategy, Component, ElementRef, Input, OnInit } from '@angular/core'
const icons = { const icons = {
'add': require('../../../assets/images/global/add.html'), 'add': require('../../../assets/images/global/add.html'),
@ -53,7 +53,8 @@ export type GlobalIconName = keyof typeof icons
@Component({ @Component({
selector: 'my-global-icon', selector: 'my-global-icon',
template: '', template: '',
styleUrls: [ './global-icon.component.scss' ] styleUrls: [ './global-icon.component.scss' ],
changeDetection: ChangeDetectionStrategy.OnPush
}) })
export class GlobalIconComponent implements OnInit { export class GlobalIconComponent implements OnInit {
@Input() iconName: GlobalIconName @Input() iconName: GlobalIconName

View File

@ -432,13 +432,14 @@ my-video-comments {
@media screen and (max-width: $small-view) { @media screen and (max-width: $small-view) {
.privacy-concerns { .privacy-concerns {
margin-left: $menu-width; margin-left: $menu-width - 15px; // Menu is absolute
} }
} }
:host-context(.expanded) { :host-context(.expanded) {
.privacy-concerns { .privacy-concerns {
width: 100%; width: 100%;
margin-left: -15px;
} }
} }
@ -449,6 +450,7 @@ my-video-comments {
padding: 5px 15px; padding: 5px 15px;
display: flex; display: flex;
flex-wrap: nowrap;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
background-color: rgba(0, 0, 0, 0.9); background-color: rgba(0, 0, 0, 0.9);

View File

@ -63,10 +63,15 @@ p-table {
&:hover { &:hover {
background-color: var(--submenuColor) !important; background-color: var(--submenuColor) !important;
.action-cell .dropdown-root { .action-cell {
.dropdown-root,
my-edit-button,
my-delete-button,
my-button {
display: block !important; display: block !important;
} }
} }
}
td { td {
border: none !important; border: none !important;
@ -138,7 +143,10 @@ p-table {
padding: 0 !important; padding: 0 !important;
text-align: center; text-align: center;
.dropdown-root { .dropdown-root,
my-edit-button,
my-delete-button,
my-button {
display: none !important; display: none !important;
&.show { &.show {