Skip to content

Commit f9b638f

Browse files
committed
fix mobile app menu
1 parent b6b4ff6 commit f9b638f

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

css/components/ncactions.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@
3838
}
3939

4040
.v-popper__wrapper {
41-
box-shadow: none;
4241
border: 1px solid var(--color-border);
42+
filter: drop-shadow(0 1px 5px var(--color-box-shadow));
43+
4344
@media screen and (max-width: $breakpoint-mobile-medium) {
4445
overflow-y: auto;
4546
max-height: 65vh;
@@ -54,6 +55,10 @@
5455
background-color: var(--color-main-background);
5556
padding: 0.5rem;
5657

58+
@media screen and (max-width: $breakpoint-mobile) {
59+
padding: 1rem;
60+
}
61+
5762
ul {
5863
display: flex;
5964
flex-direction: column;
@@ -77,6 +82,14 @@
7782

7883
li.action {
7984

85+
a {
86+
span.action-link__icon {
87+
background-position: center;
88+
background-size: 24px;
89+
filter: var(--background-invert-if-dark) !important;
90+
}
91+
}
92+
8093
&:last-child > .action-input {
8194
margin: 0;
8295
padding: 0;

css/layouts/header.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ header {
111111
}
112112

113113
button.action-item__menutoggle {
114-
height: 3rem;
114+
height: 4rem;
115115
width: 3rem !important;
116-
min-height: 3rem;
116+
min-height: 4rem;
117117
min-width: 3rem;
118118

119119
background-image: var(--icon-menu-dark);

lib/URLGeneratorDecorator.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ public function linkTo(string $appName, string $file, array $args = []): string
7272
* All other requests go to the standard URLGenerator
7373
*/
7474
public function imagePath(string $appName, string $file): string {
75+
if ($file === 'photos.svg' && $appName === 'photos') {
76+
return $this->decorated->linkTo('nmctheme', 'img/media/all-media.svg');
77+
}
78+
79+
if ($file === 'files.svg' && $appName === 'files') {
80+
return $this->decorated->linkTo('nmctheme', 'img/actions/folder.svg');
81+
}
82+
7583
if ($file === 'favicon.ico') {
7684
return $this->decorated->linkTo('nmctheme', 'img/favicon.ico');
7785
}

0 commit comments

Comments
 (0)