Browse Source

Fix privacy warning position on mobile

Chocobozzz 9 months ago
parent
commit
28e0e40d2b
No account linked to committer's email address

+ 4
- 0
client/proxy.config.json View File

@@ -6,5 +6,9 @@
6 6
   "/static": {
7 7
     "target": "http://localhost:9000",
8 8
     "secure": false
9
+  },
10
+  "/socket.io": {
11
+    "target": "http://localhost:9000",
12
+    "secure": false
9 13
   }
10 14
 }

+ 1
- 0
client/src/app/+admin/system/logs/logs.component.scss View File

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

+ 1
- 1
client/src/app/+admin/system/logs/logs.component.ts View File

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

+ 3
- 2
client/src/app/shared/images/global-icon.component.ts View File

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

+ 3
- 1
client/src/app/videos/+video-watch/video-watch.component.scss View File

@@ -432,13 +432,14 @@ my-video-comments {
432 432
 
433 433
 @media screen and (max-width: $small-view) {
434 434
   .privacy-concerns {
435
-    margin-left: $menu-width;
435
+    margin-left: $menu-width - 15px; // Menu is absolute
436 436
   }
437 437
 }
438 438
 
439 439
 :host-context(.expanded) {
440 440
   .privacy-concerns {
441 441
     width: 100%;
442
+    margin-left: -15px;
442 443
   }
443 444
 }
444 445
 
@@ -449,6 +450,7 @@ my-video-comments {
449 450
   padding: 5px 15px;
450 451
 
451 452
   display: flex;
453
+  flex-wrap: nowrap;
452 454
   align-items: center;
453 455
   justify-content: flex-start;
454 456
   background-color: rgba(0, 0, 0, 0.9);

+ 11
- 3
client/src/sass/primeng-custom.scss View File

@@ -63,8 +63,13 @@ p-table {
63 63
       &:hover {
64 64
         background-color: var(--submenuColor) !important;
65 65
 
66
-        .action-cell .dropdown-root {
67
-          display: block !important;
66
+        .action-cell {
67
+          .dropdown-root,
68
+          my-edit-button,
69
+          my-delete-button,
70
+          my-button {
71
+            display: block !important;
72
+          }
68 73
         }
69 74
       }
70 75
 
@@ -138,7 +143,10 @@ p-table {
138 143
     padding: 0 !important;
139 144
     text-align: center;
140 145
 
141
-    .dropdown-root {
146
+    .dropdown-root,
147
+    my-edit-button,
148
+    my-delete-button,
149
+    my-button {
142 150
       display: none !important;
143 151
 
144 152
       &.show {

Loading…
Cancel
Save