Skip to content

Commit

Permalink
Merge pull request #754 from nextcloud/fix/help-design
Browse files Browse the repository at this point in the history
fix(help): adjust paddings and elements size
  • Loading branch information
ShGKme authored Aug 16, 2024
2 parents 1f4d8ad + 44339d4 commit 2980473
Showing 1 changed file with 29 additions and 13 deletions.
42 changes: 29 additions & 13 deletions src/help/renderer/HelpApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { onBeforeUnmount, onMounted } from 'vue'
import MdiWindowClose from 'vue-material-design-icons/WindowClose.vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcTextArea from '@nextcloud/vue/dist/Components/NcTextArea.js'
import { translate as t } from '@nextcloud/l10n'
import { appData } from '../../app/AppData.js'
Expand Down Expand Up @@ -61,8 +60,12 @@ onBeforeUnmount(() => {

<template>
<div class="about">
<h2>{{ t('talk_desktop', 'About') }}</h2>
<h2 class="about__heading">
{{ t('talk_desktop', 'About') }}
</h2>

<p>{{ packageInfo.productName }} - {{ packageInfo.description }}</p>

<ul class="about__list">
<li>
{{ t('talk_desktop', 'Privacy and Legal Policy') }}: <a class="link" href="https://nextcloud.com/privacy/" target="_blank">https://nextcloud.com/privacy/</a>
Expand All @@ -77,37 +80,50 @@ onBeforeUnmount(() => {
{{ t('talk_desktop', 'Source Code') }}: <a :href="packageInfo.repository" class="link" target="_blank">{{ packageInfo.repository }}</a>
</li>
</ul>
<NcTextArea :aria-label="t('talk_desktop', 'System report')"

<textarea :aria-label="t('talk_desktop', 'System report')"
:value="report"
rows="11"
readonly
class="about__report"
@focus="$event.target.setSelectionRange(0, -1)" />
<p>
<NcButton type="secondary" wide @click="close">
<template #icon>
<MdiWindowClose />
</template>
{{ t('talk_desktop', 'Close') }}
</NcButton>
</p>

<NcButton type="secondary" wide @click="close">
<template #icon>
<MdiWindowClose />
</template>
{{ t('talk_desktop', 'Close') }}
</NcButton>
</div>
</template>

<style scoped>
.about {
height: 100%;
background: var(--color-main-background);
padding: 15px;
padding: calc(2 * var(--default-grid-baseline));
display: flex;
flex-direction: column;
gap: calc(2 * var(--default-grid-baseline));
&,
& * {
box-sizing: border-box;
}
}
.about__heading {
margin-top: 0;
}
.about__list {
list-style: '-' inside;
}
.about__report {
flex: 1 1 auto;
width: 100%;
resize: none;
margin: 0; /* Override server styles */
}
.about .link {
Expand Down

0 comments on commit 2980473

Please sign in to comment.