Skip to content

Commit 53f94b8

Browse files
authored
Merge pull request #18422 from nextcloud/design/recommended-apps
Design fixes for recommended apps
2 parents d3012bf + 418896f commit 53f94b8

File tree

3 files changed

+33
-18
lines changed

3 files changed

+33
-18
lines changed

core/js/dist/recommendedapps.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/js/dist/recommendedapps.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/components/setup/RecommendedApps.vue

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,38 +20,38 @@
2020
-->
2121

2222
<template>
23-
<div class="update">
23+
<div class="body-login-container">
2424
<h2>{{ t('core', 'Recommended apps') }}</h2>
25-
<p v-if="loadingApps" class="loading">
25+
<p v-if="loadingApps" class="loading text-center">
2626
{{ t('core', 'Loading apps …') }}
2727
</p>
28-
<p v-else-if="loadingAppsError" class="loading-error">
28+
<p v-else-if="loadingAppsError" class="loading-error text-center">
2929
{{ t('core', 'Could not fetch list of apps from the app store.') }}
3030
</p>
31-
<p v-else>
32-
{{ t('core', 'Installing recommended apps …') }}
31+
<p v-else class="text-center">
32+
{{ t('core', 'Installing apps …') }}
3333
</p>
3434
<div v-for="app in recommendedApps" :key="app.id" class="app">
35-
<img :src="customIcon(app.id)" :alt="t('core', 'Nextcloud app {app}', { app: app.name })">
35+
<img :src="customIcon(app.id)" :alt="t('core', 'Nextcloud {app}', { app: app.name })">
3636
<div class="info">
3737
<h3>
3838
{{ app.name }}
3939
<span v-if="app.loading" class="icon icon-loading-small" />
4040
<span v-else-if="app.active" class="icon icon-checkmark-white" />
4141
</h3>
4242
<p v-html="customDescription(app.id)" />
43-
<p v-if="app.installationError" class="error">
44-
{{ t('core', 'App download or installation failed') }}
43+
<p v-if="app.installationError">
44+
<strong>{{ t('core', 'App download or installation failed') }}</strong>
4545
</p>
46-
<p v-else-if="!app.isCompatible" class="error">
47-
{{ t('core', 'Can\'t install this app because it is not compatible') }}
46+
<p v-else-if="!app.isCompatible">
47+
<strong>{{ t('core', 'Can\'t install this app because it is not compatible') }}</strong>
4848
</p>
49-
<p v-else-if="!app.canInstall" class="error">
50-
{{ t('core', 'Can\'t install this app') }}
49+
<p v-else-if="!app.canInstall">
50+
<strong>{{ t('core', 'Can\'t install this app') }}</strong>
5151
</p>
5252
</div>
5353
</div>
54-
<a :href="defaultPageUrl">{{ t('core', 'Go back') }}</a>
54+
<p class="text-center"><a :href="defaultPageUrl">{{ t('core', 'Cancel') }}</a></p>
5555
</div>
5656
</template>
5757

@@ -165,27 +165,42 @@ export default {
165165
</script>
166166

167167
<style lang="scss" scoped>
168+
.body-login-container {
169+
max-width: 290px;
170+
}
171+
168172
p.loading, p.loading-error {
169173
height: 100px;
170174
}
175+
176+
.text-center {
177+
text-align: center;
178+
}
179+
171180
.app {
172181
display: flex;
173182
flex-direction: row;
174183
175184
img {
176-
height: 64px;
177-
width: 64px;
185+
height: 50px;
186+
width: 50px;
187+
filter: invert(1);
178188
}
179189
180190
img, .info {
181191
padding: 12px;
182192
}
183193
184194
.info {
185-
h3 {
195+
h3, p {
186196
text-align: left;
187197
}
188198
199+
h3 {
200+
color: #fff;
201+
margin-top: 0;
202+
}
203+
189204
h3 > span.icon {
190205
display: inline-block;
191206
}

0 commit comments

Comments
 (0)