Skip to content

Commit

Permalink
webapp: improve styling of hints on home view
Browse files Browse the repository at this point in the history
* increase the spacing between the icon and the text.
* put the text into its own box so it does not flow around the icon.
* vertically center the icon to account for multiple lines of text.
* vertically center the text to account for a single line of text.

closes #1441.
  • Loading branch information
schlimmchen authored and tbnobody committed Dec 3, 2024
1 parent 241ee1e commit 8247070
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions webapp/src/components/HintView.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
<template>
<BootstrapAlert :show="hints.radio_problem" variant="danger">
<BIconBroadcast class="fs-4" /> {{ $t('hints.RadioProblem') }}
<div class="d-flex">
<div class="align-content-center"><BIconBroadcast class="fs-4" /></div>
<div class="align-content-center ms-3">{{ $t('hints.RadioProblem') }}</div>
</div>
</BootstrapAlert>

<BootstrapAlert :show="hints.time_sync" variant="danger">
<BIconClock class="fs-4" /> {{ $t('hints.TimeSync') }}
<a @click="gotoTimeSettings" href="#" class="alert-link">{{ $t('hints.TimeSyncLink') }}</a>
<div class="d-flex">
<div class="align-content-center"><BIconClock class="fs-4" /></div>
<div class="align-content-center ms-3">
{{ $t('hints.TimeSync') }}
<a @click="gotoTimeSettings" href="#" class="alert-link">{{ $t('hints.TimeSyncLink') }}</a>
</div>
</div>
</BootstrapAlert>

<BootstrapAlert :show="hints.default_password" variant="danger">
<BIconExclamationCircle class="fs-4" /> {{ $t('hints.DefaultPassword') }}
<a @click="gotoPasswordSettings" href="#" class="alert-link">{{ $t('hints.DefaultPasswordLink') }}</a>
<div class="d-flex">
<div class="align-content-center"><BIconExclamationCircle class="fs-4" /></div>
<div class="align-content-center ms-3">
{{ $t('hints.DefaultPassword') }}
<a @click="gotoPasswordSettings" href="#" class="alert-link">{{ $t('hints.DefaultPasswordLink') }}</a>
</div>
</div>
</BootstrapAlert>
</template>

Expand Down

0 comments on commit 8247070

Please sign in to comment.