Compare commits

...

2 Commits

Author SHA1 Message Date
librelad
ab5b70129f Merge claude/1 2026-05-23 15:07:20 +01:00
librelad
459609a35b style(backup): polish location tabs — drop stray descriptions, pad panels, round corners
- Remove the per-tab 'How LibrePortal connects…' description lines; the tab
  labels already say what each panel is, and the paragraphs read as misplaced
  titles.
- Give the tab panels even, comfortable padding (tabs-content padding zeroed so
  the panel owns it) instead of the cramped 2px sides.
- Round the tab strip's top corners (.tabs-list) so the strip + content read as
  one card — .tabs-content already rounds the bottom, leaving the top square.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
2026-05-23 15:07:19 +01:00
2 changed files with 11 additions and 10 deletions

View File

@ -724,15 +724,19 @@
}
/* The location editor reuses the app-detail tab design (.tabs-wrapper /
.tab-button / .tab-panel from style.css). Only trim the panel padding so it
sits inside the backup row's own padding instead of doubling it. */
.backup-location-details .tab-panel {
padding: 16px 2px 2px;
.tab-button / .tab-panel from style.css). Round the strip's top corners so
it reads as a card (.tabs-content already rounds the bottom), and let the
panel own a comfortable, even padding around the config fields. */
.backup-location-details .tabs-list {
border-radius: 12px 12px 0 0;
}
.backup-location-details .tab-panel > .category-description {
margin-top: 0;
margin-bottom: 12px;
.backup-location-details .tabs-content {
padding: 0;
}
.backup-location-details .tab-panel {
padding: 20px 22px;
}
.backup-form-footer {

View File

@ -696,19 +696,16 @@ class BackupPage {
</div>
<div class="tabs-content">
<div class="tab-panel active" data-tab-panel="connection" data-loc="${idx}">
<p class="category-description">How LibrePortal connects to this storage location.</p>
<div class="backup-location-connection-fields" id="backup-location-${idx}-connection">
${this.renderLocFields(idx, groups.connection, l)}
</div>
</div>
<div class="tab-panel" data-tab-panel="retention" data-loc="${idx}">
<p class="category-description">When to delete old backups from this location.</p>
<div id="backup-location-${idx}-retention">
${this.formRetention(`CFG_BACKUP_LOC_${idx}_`, retentionValues, true)}
</div>
</div>
<div class="tab-panel" data-tab-panel="advanced" data-loc="${idx}">
<p class="category-description">Overrides most locations don't need.</p>
<div id="backup-location-${idx}-advanced">
${this.renderLocFields(idx, groups.advanced, l)}
</div>