improve import/export table

This commit is contained in:
Henry Jameson 2025-11-25 20:44:20 +02:00
commit f24f164995
2 changed files with 30 additions and 18 deletions

View file

@ -1,11 +1,21 @@
.data-import-export-tab { .data-import-export-tab {
h3 {
margin-right: -2em;
}
.importer-exporter { .importer-exporter {
display: inline-flex; display: inline-flex;
flex-direction: column; flex-direction: column;
gap: 0.5em; gap: 0.5em;
} }
table {
td, th {
line-height: 1.5;
}
th {
padding: 0 0.5em;
}
td {
padding: 0.5em;
}
}
} }

View file

@ -56,8 +56,22 @@
</li> </li>
</ul> </ul>
<h3>{{ $t('settings.account_backup') }}</h3> <h3>{{ $t('settings.account_backup') }}</h3>
<p>{{ $t('settings.account_backup_description') }}</p> <div class="setting-list">
<table> <p>{{ $t('settings.account_backup_description') }}</p>
<button
class="btn button-default"
@click="addBackup"
>
{{ $t('settings.add_backup') }}
</button>
<p v-if="addedBackup">
{{ $t('settings.added_backup') }}
</p>
<template v-if="addBackupError !== false">
<p>{{ $t('settings.add_backup_error', { error: addBackupError }) }}</p>
</template>
</div>
<table class="setting-list">
<thead> <thead>
<tr> <tr>
<th>{{ $t('settings.account_backup_table_head') }}</th> <th>{{ $t('settings.account_backup_table_head') }}</th>
@ -112,18 +126,6 @@
/> />
</button> </button>
</div> </div>
<button
class="btn button-default"
@click="addBackup"
>
{{ $t('settings.add_backup') }}
</button>
<p v-if="addedBackup">
{{ $t('settings.added_backup') }}
</p>
<template v-if="addBackupError !== false">
<p>{{ $t('settings.add_backup_error', { error: addBackupError }) }}</p>
</template>
</div> </div>
</div> </div>
</template> </template>