Skip to content

Commit 5771099

Browse files
authored
Merge pull request #18 from chytanka/develop
Develop
2 parents db00343 + b60a9e3 commit 5771099

23 files changed

+92
-83
lines changed

src/app/link-parser/ui/footer/footer.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ made-in-ukraine, app-lang-toggle {
44

55
app-overlay {
66
position: absolute;
7-
backdrop-filter: blur(1ch);
7+
background: unset;
88
}

src/app/link-parser/ui/header/header.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
app-overlay{
33
position: absolute;
4-
backdrop-filter: blur(1ch);
4+
background: unset;
55
}
66

77
app-lang-toggle {

src/app/shared/ui/dialog/dialog.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { Component, ElementRef, EventEmitter, Input, Output, ViewChild, WritableSignal, inject, signal } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Input, Output, ViewChild, WritableSignal, inject, signal } from '@angular/core';
22
import { LangService } from '../../data-access/lang.service';
33

44
@Component({
55
selector: 'app-dialog',
66
templateUrl: './dialog.component.html',
7-
styleUrl: './dialog.component.scss'
7+
styleUrl: './dialog.component.scss',
8+
changeDetection: ChangeDetectionStrategy.OnPush
89
})
910
export class DialogComponent {
1011
lang = inject(LangService)

src/app/shared/ui/lang-toggle/lang-toggle.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, WritableSignal, inject, signal } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component, WritableSignal, inject, signal } from '@angular/core';
22
import { LangService } from '../../data-access/lang.service';
33
import { ViewModeOption } from '../../data-access';
44

@@ -7,7 +7,8 @@ import { ViewModeOption } from '../../data-access';
77
@Component({
88
selector: 'app-lang-toggle',
99
templateUrl: './lang-toggle.component.html',
10-
styleUrl: './lang-toggle.component.scss'
10+
styleUrl: './lang-toggle.component.scss',
11+
changeDetection: ChangeDetectionStrategy.OnPush
1112
})
1213
export class LangToggleComponent {
1314
lang = inject(LangService)

src/app/shared/ui/loading/loading.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, inject } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
22
import { LangService } from '../../data-access/lang.service';
33

44
@Component({
@@ -32,7 +32,8 @@ import { LangService } from '../../data-access/lang.service';
3232
to { transform: rotate(360deg); }
3333
}
3434
`
35-
]
35+
],
36+
changeDetection: ChangeDetectionStrategy.OnPush
3637
})
3738
export class LoadingComponent {
3839
lang = inject(LangService)

src/app/shared/ui/made-in-ukraine/made-in-ukraine.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component } from '@angular/core';
22

33
@Component({
44
selector: 'made-in-ukraine',
@@ -27,7 +27,8 @@ import { Component } from '@angular/core';
2727
}
2828
}
2929
}
30-
`]
30+
`],
31+
changeDetection: ChangeDetectionStrategy.OnPush
3132
})
3233
export class MadeInUkraineComponent {
3334

src/app/shared/ui/manga-page/manga-page-even.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { Component } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component } from '@angular/core';
22

33
@Component({
44
selector: 'app-manga-page-even',
55
templateUrl: './manga-page-even.component.html',
6-
styleUrl: './manga-page-even.component.scss'
6+
styleUrl: './manga-page-even.component.scss',
7+
changeDetection: ChangeDetectionStrategy.OnPush
78
})
89
export class MangaPageEvenComponent {
910

src/app/shared/ui/manga-page/manga-page.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { Component } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component } from '@angular/core';
22

33
@Component({
44
selector: 'manga-page',
55
templateUrl: './manga-page.component.html',
6-
styleUrl: './manga-page.component.scss'
6+
styleUrl: './manga-page.component.scss',
7+
changeDetection: ChangeDetectionStrategy.OnPush
78
})
89
export class MangaPageComponent {
910

src/app/shared/ui/nsfw-warning/nsfw-warning.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { Component, EventEmitter, Output, Input } from '@angular/core';
1+
import { Component, EventEmitter, Output, Input, ChangeDetectionStrategy } from '@angular/core';
22

33
@Component({
44
selector: 'app-nsfw-warning',
55
templateUrl: './nsfw-warning.component.html',
6-
styleUrl: './nsfw-warning.component.scss'
6+
styleUrl: './nsfw-warning.component.scss',
7+
changeDetection: ChangeDetectionStrategy.OnPush
78
})
89
export class NsfwWarningComponent {
910
@Input() title: string = `⚠️🔞 NSFW Content`;
Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
:host {
2-
--g: linear-gradient(#0000, #111);
3-
42
display: flex;
53
gap: 1ch;
64
align-items: center;
@@ -10,53 +8,22 @@
108
left: 0;
119
width: 100%;
1210
z-index: 1;
13-
padding: 1ch 1rem;
11+
padding: 1ch calc(1rem + .25ch) 1.25ch 1rem;
1412
pointer-events: none;
1513
transition: opacity var(--t) cubic-bezier(.4, 0, 1, 1);
1614

1715
font-size: 14px;
1816
line-height: 1;
19-
-webkit-font-smoothing: antialiased;
20-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
21-
22-
&::before,
23-
&::after {
24-
content: '';
25-
position: absolute;
26-
bottom: 0;
27-
width: 100%;
28-
height: 100%;
29-
left: 0;
30-
pointer-events: none;
31-
}
32-
33-
&::before {
34-
z-index: -2;
35-
left: 0;
36-
backdrop-filter: blur(1rem);
37-
-webkit-mask-box-image: var(--g);
38-
mask-border: var(--g);
39-
}
40-
41-
&::after {
42-
z-index: -1;
43-
background-image: var(--g);
44-
}
17+
background: var(--surface);
18+
background: oklch(from var(--surface) calc(l + .05) c h);
4519

4620
&.show {
4721
opacity: 1;
4822
pointer-events: unset;
4923
}
5024

5125
&.top {
52-
--g: linear-gradient(#111, #0000);
5326
top: 0;
5427
bottom: unset;
55-
56-
&::before,
57-
&::after {
58-
top: 0;
59-
bottom: unset;
60-
}
6128
}
6229
}

0 commit comments

Comments
 (0)