Skip to content

Commit db83890

Browse files
committed
hot fix: direction: ltr;
1 parent 8ad749e commit db83890

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

src/app/shared/ui/viewer/components/hint-page/hint-page.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<manga-page [dir]="viewer.viewModeOption().dir" style="margin: auto;">
2-
<svg frame="3" viewBox="0 0 300 200">
2+
<svg dir="ltr" frame="3" viewBox="0 0 300 200">
33

44
<text x="50%" y="42%" font-size="28">
55
{{lang.ph().getByKey(viewer.viewModeOption().hintPhraceKey)}}
66
</text>
77
<text x="50%" y="58%" font-size="24">{{viewer.viewModeOption().emoji}}</text>
88
</svg>
99

10-
<svg frame="1" viewBox="0 0 280 280">
10+
<svg dir="ltr" frame="1" viewBox="0 0 280 280">
1111
<rect x="20" y="80" width="240" height="120" rx="4" stroke-width="2" fill="white" stroke="black" />
1212
<text fill="currentColor" font-size="14">
1313
<tspan x="50%" y="38%">Тицьни 👆</tspan>
@@ -17,15 +17,15 @@
1717
</text>
1818
</svg>
1919

20-
<svg frame="3" class="abs" viewBox="0 0 200 150">
20+
<svg dir="ltr" frame="3" class="abs" viewBox="0 0 200 150">
2121
<text class="hand-text" fill="currentColor" font-size="11">
2222
<tspan x="50%" y="38%">Вгорі справа можна змінити</tspan>
2323
<tspan x="50%" y="48%">орієнтацію читання</tspan>
2424
</text>
2525
</svg>
2626

2727

28-
<svg frame="2" viewBox="0 0 320 320">
28+
<svg dir="ltr" frame="2" viewBox="0 0 320 320">
2929
<rect x="-20" y="85" width="360" height="120" rx="4" stroke-width="2" fill="white" stroke="black"></rect>
3030
<text fill="currentColor" font-size="14">
3131
<tspan x="50%" y="34%">для навігації: ⬅➡ або ad</tspan>
@@ -38,7 +38,7 @@
3838

3939
<img frame="4" style="display: block;" src="/assets/icons/icon-line.svg" alt="Chytanka logo">
4040

41-
<div frame="5">
41+
<div dir="ltr" frame="5">
4242
@if (getPrevIndex() >=0 && playlist[getPrevIndex()]; as prev) {
4343
<a dir="ltr" [routerLink]="['/', prev.site, prev.id]"
4444
[queryParams]="{lang: lang.lang(), list: playlistLink, vm: viewer.viewModeOption().code}">

src/app/shared/ui/viewer/components/hint-page/hint-page.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ svg {
1515
text {
1616
text-anchor: middle;
1717
font-family: 'Troubleside', monospace;
18+
direction: ltr;
1819
}
1920

2021
&.abs {

src/app/shared/ui/viewer/viewer.component.html

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,30 @@
4141
<div class="page">
4242
<figure>
4343
<app-manga-page-even [dir]="viewer.viewModeOption().dir">
44-
<div frame="1" style="padding: 1ch; width: 100%; display: grid; place-items: center;">
45-
<img style="display: block; max-width:50%; margin: auto;" src="/assets/images/heart-hand-drawn-symbol-outline-svgrepo-com.svg" alt="heart-hand-drawn-symbol-outline">
44+
<div dir="ltr" frame="1" style="padding: 1ch; width: 100%; display: grid; place-items: center;">
45+
<img style="display: block; max-width:50%; margin: auto;"
46+
src="/assets/images/heart-hand-drawn-symbol-outline-svgrepo-com.svg"
47+
alt="heart-hand-drawn-symbol-outline">
4648
</div>
4749

48-
<div frame="5" style="padding: 1ch; width: 100%; display: grid; place-items: center;">
49-
<img style="display: block; max-width:60%; margin: auto;" src="/assets/images/map-hand-drawn-paper-svgrepo-com.svg" alt="map-hand-drawn-paper">
50+
<div dir="ltr" frame="5" style="padding: 1ch; width: 100%; display: grid; place-items: center;">
51+
<img style="display: block; max-width:60%; margin: auto;"
52+
src="/assets/images/map-hand-drawn-paper-svgrepo-com.svg" alt="map-hand-drawn-paper">
5053
</div>
5154

52-
<div frame="2" style="padding: 1ch; width: 100%; display: grid; place-items: center;">
53-
<img style="display: block; max-width:50%; margin: auto;" src="/assets/images/web-comics-svgrepo-com.svg" alt="map-hand-drawn-paper">
55+
<div dir="ltr" frame="2" style="padding: 1ch; width: 100%; display: grid; place-items: center;">
56+
<img style="display: block; max-width:50%; margin: auto;"
57+
src="/assets/images/web-comics-svgrepo-com.svg" alt="map-hand-drawn-paper">
5458
</div>
55-
59+
5660
<!-- <img frame="2" style="display: block; margin: auto;" src="/assets/images/smile-hand-drawn-emoticon-svgrepo-com.svg" >
5761
<img frame="2" style="display: block; margin: auto;" src="/assets/images/web-comics-svgrepo-com.svg" >
5862
<img frame="2" style="display: block; margin: auto;" src="/assets/images/woman-young-head-hand-drawn-outline-svgrepo-com.svg" > -->
5963

60-
<div frame="3" style="padding: 1ch; width: 100%; height: 100%; display: grid; place-items: center;">
61-
<img style="display: block; max-width: 40%; margin: auto;" src="/assets/icons/icon-line.svg" alt="Chytanka logo">
64+
<div dir="ltr" frame="3"
65+
style="padding: 1ch; width: 100%; height: 100%; display: grid; place-items: center;">
66+
<img style="display: block; max-width: 40%; margin: auto;" src="/assets/icons/icon-line.svg"
67+
alt="Chytanka logo">
6268
<p style="text-align: center;">Кінець епізоду</p>
6369

6470
@if (getNextIndex() >=0 && playlist[getNextIndex()]; as next) {
@@ -69,7 +75,8 @@
6975
lang.ph().untitled + ' ' + (getNextIndex() + 1)}} ⏩</a>
7076
}
7177
</div>
72-
<div frame="4" style="padding: 1ch; text-align: center; display: grid; place-content: center;">
78+
<div dir="ltr" frame="4"
79+
style="padding: 1ch; text-align: center; display: grid; place-content: center;">
7380
<ng-content />
7481
</div>
7582
</app-manga-page-even>

0 commit comments

Comments
 (0)