Skip to content

Commit

Permalink
webapp: fix line break for reload button
Browse files Browse the repository at this point in the history
if a page uses the reload button, it had only 1 column of space, and
only if the viewport was at least "sm". this is not the case for typical
smartphones, in which case the reload button would appear on its own row
instead of to the right.

we now limit the heading to 10 columns if and only if the reload button
is to be used, otherwise the heading uses all 12 columns, regardless of
the viewport size. the reload buton uses two columns -- if it is
displayed at all.

the font size of the icon is increased slightly.

as the font size of h1 headings changes with the viewport size, we need
to center both the heading and the button vertically.
  • Loading branch information
schlimmchen committed Nov 12, 2024
1 parent d5d66ec commit 7e19f19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions webapp/src/components/BasePage.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<div :class="{ 'container-xxl': !isWideScreen, 'container-fluid': isWideScreen }" role="main">
<div class="page-header">
<div class="row">
<div class="col-sm-11">
<h1>
<div class="row mb-3">
<div :class="'align-content-center ' + (showReload ? 'col-10' : 'col-12')">
<h1 class="mb-0">
{{ title }}
<span
v-if="showWebSocket"
Expand All @@ -14,10 +14,10 @@
></span>
</h1>
</div>
<div class="col-sm-1" v-if="showReload">
<div class="col-2 align-content-center" v-if="showReload">
<button
type="button"
class="float-end btn btn-outline-primary"
class="float-end btn btn-outline-primary fs-5"
@click="$emit('reload')"
v-tooltip
:title="$t('base.Reload')"
Expand Down

0 comments on commit 7e19f19

Please sign in to comment.