Skip to content

Commit a3a740b

Browse files
author
MTier Ltd
committed
add quick hack to make NC28 usable
1 parent a7b439e commit a3a740b

File tree

3 files changed

+84
-3
lines changed

3 files changed

+84
-3
lines changed

appinfo/info.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Mit dem integrierten Dashboard lässt sich anhand eines Kuchen-/Donut-Diagramms
3535

3636
Diese App wird aktuell noch weiterentwickelt, also: Augen offen halten für neue Features! Und falls Dir irgendwelche Verbesserungsvorschläge, Probleme oder neue Features einfallen, schau mal auf unserem [GitHub Projekt](https://github.com/mtierltd/timetracker) vorbei, vielleicht wird Dein Thema bereits diskutiert! Und falls nicht, starte gerne eine neue Diskussion, wir freuen uns auf Dein Feedback!
3737
</description>
38-
<version>0.0.81</version>
38+
<version>0.0.82</version>
3939
<licence>agpl</licence>
4040
<author mail="[email protected]" >MTier Ltd.</author>
4141
<namespace>TimeTracker</namespace>
@@ -53,7 +53,7 @@ Diese App wird aktuell noch weiterentwickelt, also: Augen offen halten für neue
5353
<screenshot>https://abload.de/img/bildschirmfotoam2021-vuk8t.png</screenshot>
5454
<screenshot>https://abload.de/img/bildschirmfotoam2021-03kxw.png</screenshot>
5555
<dependencies>
56-
<nextcloud min-version="20" max-version="27"/>
56+
<nextcloud min-version="20" max-version="28"/>
5757
</dependencies>
5858
<navigations>
5959
<navigation>

css/style-compat.css

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#app-navigation:not(.vue) > ul {
2+
position: relative;
3+
height: 100%;
4+
width: 100%;
5+
overflow-x: hidden;
6+
overflow-y: auto;
7+
box-sizing: border-box;
8+
display: flex;
9+
flex-direction: column;
10+
padding: calc(var(--default-grid-baseline) * 2);
11+
}
12+
13+
#app-navigation:not(.vue) > ul > li,
14+
#app-navigation:not(.vue) > ul > li > ul > li {
15+
position: relative;
16+
box-sizing: border-box;
17+
}
18+
19+
#app-navigation:not(.vue) > ul > li {
20+
display: inline-flex;
21+
flex-wrap: wrap;
22+
order: 1;
23+
flex-shrink: 0;
24+
margin: 0;
25+
margin-bottom: 3px;
26+
width: 100%;
27+
border-radius: var(--border-radius-pill);
28+
}
29+
30+
#app-navigation:not(.vue) > ul > li.active,
31+
#app-navigation:not(.vue) > ul > li.active > a,
32+
#app-navigation:not(.vue) > ul > li a:active,
33+
#app-navigation:not(.vue) > ul > li a:active > a,
34+
#app-navigation:not(.vue) > ul > li a.selected,
35+
#app-navigation:not(.vue) > ul > li a.selected > a,
36+
#app-navigation:not(.vue) > ul > li a.active,
37+
#app-navigation:not(.vue) > ul > li a.active > a {
38+
background-color: var(--color-primary-light);
39+
}
40+
41+
#app-navigation:not(.vue) > ul > li > a,
42+
#app-navigation:not(.vue) > ul > li > ul > li > a {
43+
background-size: 16px 16px;
44+
background-position: 14px center;
45+
background-repeat: no-repeat;
46+
display: block;
47+
justify-content: space-between;
48+
line-height: 44px;
49+
min-height: 44px;
50+
padding: 0 12px 0 14px;
51+
overflow: hidden;
52+
box-sizing: border-box;
53+
white-space: nowrap;
54+
text-overflow: ellipsis;
55+
border-radius: var(--border-radius-pill);
56+
color: var(--color-main-text);
57+
flex: 1 1 0px;
58+
z-index: 100;
59+
}
60+
61+
#app-navigation:not(.vue) > ul > li a:hover,
62+
#app-navigation:not(.vue) > ul > li a:hover > a,
63+
#app-navigation:not(.vue) > ul > li a:focus,
64+
#app-navigation:not(.vue) > ul > li a:focus > a {
65+
background-color: var(--color-background-hover);
66+
}
67+
68+
#app-navigation:not(.vue) > ul > li > a:first-child img,
69+
#app-navigation:not(.vue) > ul > li > ul > li > a:first-child img {
70+
margin-right: 11px;
71+
width: 16px;
72+
height: 16px;
73+
filter: var(--background-invert-if-dark);
74+
}

templates/index.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
<?php
2+
3+
$nextcloudMajorVersion = \OCP\Util::getVersion()[0];
4+
25
style('timetracker', 'all');
36
style('timetracker', 'style');
7+
8+
if (intval($nextcloudMajorVersion) >= 28) {
9+
style('timetracker', 'style-compat');
10+
}
11+
412
script('timetracker', $script);
513

614
?>
715

816
<div id="app-navigation">
917
<?php print_unescaped($this->inc('navigation/index')); ?>
10-
<?php print_unescaped($this->inc('settings/index')); ?>
1118
</div>
1219

1320
<div id="app-content">

0 commit comments

Comments
 (0)