Fix privacy warning position on mobile
authorChocobozzz <me@florianbigard.com>
Mon, 15 Apr 2019 07:43:23 +0000 (09:43 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 15 Apr 2019 07:43:23 +0000 (09:43 +0200)
client/proxy.config.json
client/src/app/+admin/system/logs/logs.component.scss
client/src/app/+admin/system/logs/logs.component.ts
client/src/app/shared/images/global-icon.component.ts
client/src/app/videos/+video-watch/video-watch.component.scss
client/src/sass/primeng-custom.scss

index d1f3936729846b935102c5b2fe1e428ede8644d0..e5f0dfd617887be0ee5279b85d1aa6684915a538 100644 (file)
@@ -6,5 +6,9 @@
   "/static": {
     "target": "http://localhost:9000",
     "secure": false
+  },
+  "/socket.io": {
+    "target": "http://localhost:9000",
+    "secure": false
   }
 }
index ab00fb5aef0ebf1ee6300c47da006897a09c2f80..7ad2e853cfe618435c3747f5c9342d41ca7c9b06 100644 (file)
@@ -11,6 +11,7 @@
 
   .log-row {
     margin-top: 1px;
+    word-break: break-word;
 
     &:hover {
       background: rgba(0, 0, 0, 0.07);
index 17abb8409365ec08f1c0cc242a8b0b242b123e5a..1a3508a3bf4047604f59de0b5abfd5c6b1c11a5a 100644 (file)
@@ -106,6 +106,6 @@ export class LogsComponent implements OnInit {
       }
     ]
 
-    this.level = 'info'
+    this.level = 'warn'
   }
 }
index 03cf3d7ae53e85410f752e405c3d9d1487220775..5a3db4531ceb460423a842257834a9aebac4d0a2 100644 (file)
@@ -1,4 +1,4 @@
-import { Component, ElementRef, Input, OnInit } from '@angular/core'
+import { ChangeDetectionStrategy, Component, ElementRef, Input, OnInit } from '@angular/core'
 
 const icons = {
   'add': require('../../../assets/images/global/add.html'),
@@ -53,7 +53,8 @@ export type GlobalIconName = keyof typeof icons
 @Component({
   selector: 'my-global-icon',
   template: '',
-  styleUrls: [ './global-icon.component.scss' ]
+  styleUrls: [ './global-icon.component.scss' ],
+  changeDetection: ChangeDetectionStrategy.OnPush
 })
 export class GlobalIconComponent implements OnInit {
   @Input() iconName: GlobalIconName
index de932c99d7dacf4ff8292148002bebe0b9595a90..d8113b666de6abd2eeb5504309863bc1270c2eb1 100644 (file)
@@ -432,13 +432,14 @@ my-video-comments {
 
 @media screen and (max-width: $small-view) {
   .privacy-concerns {
-    margin-left: $menu-width;
+    margin-left: $menu-width - 15px; // Menu is absolute
   }
 }
 
 :host-context(.expanded) {
   .privacy-concerns {
     width: 100%;
+    margin-left: -15px;
   }
 }
 
@@ -449,6 +450,7 @@ my-video-comments {
   padding: 5px 15px;
 
   display: flex;
+  flex-wrap: nowrap;
   align-items: center;
   justify-content: flex-start;
   background-color: rgba(0, 0, 0, 0.9);
index 6de14537904f51d2d08cf4b629de3551fb333145..957b993565505d503efdb04d32881d66865f47c1 100644 (file)
@@ -63,8 +63,13 @@ p-table {
       &:hover {
         background-color: var(--submenuColor) !important;
 
-        .action-cell .dropdown-root {
-          display: block !important;
+        .action-cell {
+          .dropdown-root,
+          my-edit-button,
+          my-delete-button,
+          my-button {
+            display: block !important;
+          }
         }
       }
 
@@ -138,7 +143,10 @@ p-table {
     padding: 0 !important;
     text-align: center;
 
-    .dropdown-root {
+    .dropdown-root,
+    my-edit-button,
+    my-delete-button,
+    my-button {
       display: none !important;
 
       &.show {