Skip to content

Commit c19d04b

Browse files
committed
Improved news activity layout
1 parent 74273b0 commit c19d04b

File tree

4 files changed

+48
-23
lines changed

4 files changed

+48
-23
lines changed

app/src/main/assets/news/latestUpdate_de.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@
2323
<article id="update">
2424
<h1>Aktuelle Neuerungen</h1>
2525
<h3>Version: v1.4.0</h3>
26-
<ul>
27-
<li>Web-App-Reihenfolge im Menü kann geändert werden</li>
28-
<li>Datei-Downloads werden unterstützt</li>
29-
<li>Native Alpha-Kontextmenü kann pro Web-App deaktiviert werden, sodass das normale Browser-Kontextmenü gezeigt wird</li>
30-
<li>Italienische Übersetzung hinzugefügt</li>
31-
<li>Generelle, technische Versionsupdates</li>
32-
</ul>
26+
<div class="list-wrapper">
27+
<ul>
28+
<li>Web-App-Reihenfolge im Menü kann geändert werden</li>
29+
<li>Datei-Downloads werden unterstützt</li>
30+
<li>Native Alpha-Kontextmenü kann pro Web-App deaktiviert werden, sodass das normale Browser-Kontextmenü gezeigt wird</li>
31+
<li>Italienische Übersetzung hinzugefügt</li>
32+
<li>Generelle, technische Versionsupdates</li>
33+
</ul>
34+
</div>
3335
</article>
3436
<article id="eula">
3537
<h1>Nutzungsbedingungen - <wbr>Haftungsausschluss</h1>

app/src/main/assets/news/latestUpdate_en.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,22 @@
2323
<article id="update">
2424
<h1>News</h1>
2525
<h3>Version: v1.4.0</h3>
26-
<ul>
27-
<li>Order of Web Apps in menu can be changed</li>
28-
<li>File downloads are supported</li>
29-
<li>Native Alpha custom context menu can be deactived so that the standard browser context menu is shown</li>
30-
<li>Italian translation added</li>
31-
<li>General, technical version updates</li>
32-
</ul>
26+
<div class="list-wrapper">
27+
<ul>
28+
<li>Order of Web Apps in menu can be changed</li>
29+
<li>File downloads are supported</li>
30+
<li>Native Alpha custom context menu can be deactived so that the standard browser context menu is shown
31+
</li>
32+
<li>Italian translation added</li>
33+
<li>General, technical version updates</li>
34+
</ul>
35+
</div>
3336

3437
</article>
3538
<article id="eula">
3639
<h1>Terms of Usage - <wbr>Nonliability</h1>
3740
<p>This app is published under GNU General Public
38-
License v3. The source code is freely accessible on GitHub. More information in the "About" section.</p>
41+
License v3. The source code is freely accessible on GitHub. More information in the "About" section.</p>
3942
<p>
4043
The software is provided “as is”, without warranty of any kind, express or implied, including but not limited
4144
to

app/src/main/assets/news/news.css

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
:root {
2+
--custom-red: #b71c1c;
3+
}
4+
5+
body {
6+
font-family: Arial, Helvetica, sans-serif;
7+
}
8+
19
header {
210
display: flex;
311
justify-content: center;
@@ -12,6 +20,12 @@ header img {
1220
#wrapper {
1321
display: flex;
1422
flex-direction: row;
23+
justify-content: center;
24+
}
25+
26+
#update {
27+
display: flex;
28+
flex-direction: column;
1529
}
1630

1731
main {
@@ -20,6 +34,7 @@ main {
2034
width: 80%;
2135
flex-direction: column;
2236
overflow-wrap: break-word;
37+
text-align: center;
2338
}
2439

2540
aside {
@@ -36,10 +51,16 @@ ul {
3651
padding: 0;
3752
}
3853

54+
.list-wrapper {
55+
text-align: start;
56+
margin: 0 auto;
57+
}
58+
3959
ul li::before {
40-
content: "";
41-
color: rgb(122, 122, 122);
42-
font-weight: bold;
60+
content: "»";
61+
font-weight: 1000;
62+
font-size: 18pt;
4363
display: inline-block;
44-
width: 2em;
64+
width: 1em;
65+
color: var(--custom-red);
4566
}

app/src/main/res/layout/news_activity.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
android:orientation="vertical"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7-
android:background="@android:color/white"
8-
android:forceDarkAllowed="false"
7+
android:layout_margin="@dimen/margin_activity"
98
android:id="@+id/news_main">
109
<View
1110
android:layout_width="match_parent"
@@ -32,11 +31,11 @@
3231
</LinearLayout>
3332
</ScrollView>
3433
<LinearLayout
35-
android:id="@+id/header"
36-
android:layout_weight="10"
3734
android:layout_width="wrap_content"
3835
android:layout_height="wrap_content"
3936
android:layout_gravity="end"
37+
android:layout_marginEnd="15dp"
38+
android:layout_marginBottom="15dp"
4039
android:orientation="horizontal">
4140

4241
<Button

0 commit comments

Comments
 (0)