refactor css for timeline buttons, make it a bit easier to tap them

This commit is contained in:
Henry Jameson 2022-09-28 21:16:05 +03:00
parent 2ab51a4ccb
commit c041d7aa9b
4 changed files with 47 additions and 43 deletions

View File

@ -89,19 +89,4 @@
<script src="./quick_filter_settings.js"></script> <script src="./quick_filter_settings.js"></script>
<style lang="scss"> <style lang="scss">
.QuickFilterSettings {
> button {
line-height: 100%;
height: 100%;
width: var(--__panel-heading-height-inner);
text-align: center;
svg {
font-size: 1.2em;
}
}
}
</style> </style>

View File

@ -76,19 +76,4 @@
<script src="./quick_view_settings.js"></script> <script src="./quick_view_settings.js"></script>
<style lang="scss"> <style lang="scss">
.QuickViewSettings {
> button {
line-height: 100%;
height: 100%;
width: var(--__panel-heading-height-inner);
text-align: center;
svg {
font-size: 1.2em;
}
}
}
</style> </style>

View File

@ -13,6 +13,36 @@
background-color: var(--cGreen); background-color: var(--cGreen);
} }
.timeline-header-button {
align-self: stretch;
text-align: center;
width: var(--__panel-heading-height);
height: var(--__panel-heading-height);
margin: calc(-1 * var(--panel-heading-height-padding));
> button {
box-sizing: border-box;
padding: calc(1 * var(--panel-heading-height-padding));
height: 100%;
width: 100%;
text-align: center;
svg {
font-size: 1.2em;
}
}
}
.timeline-header-icon {
align-self: stretch;
text-align: center;
width: var(--__panel-heading-height);
svg {
font-size: 1.2em;
}
}
.loadmore-button { .loadmore-button {
position: relative position: relative
} }

View File

@ -19,21 +19,25 @@
/> />
</FALayers> </FALayers>
</button> </button>
<template v-if="mobileLayout"> <template v-if="mobileLayout && !embedded">
<button <div
class="timeline-header-button"
v-if="showLoadButton" v-if="showLoadButton"
class="button-unstyled loadmore-button"
@click.prevent="showNewStatuses"
> >
<FAIcon <button
fixed-width class="button-unstyled loadmore-button"
icon="circle-plus" @click.prevent="showNewStatuses"
/> >
<div class="alert-dot" /> <FAIcon
</button> fixed-width
icon="circle-plus"
/>
<div class="alert-dot" />
</button>
</div>
<div <div
v-else-if="!embedded" v-else-if="!embedded"
class="loadmore-text faint veryfaint" class="loadmore-text faint veryfaint timeline-header-icon"
@click.prevent @click.prevent
> >
<FAIcon <FAIcon
@ -58,8 +62,8 @@
{{ $t('timeline.up_to_date') }} {{ $t('timeline.up_to_date') }}
</div> </div>
</template> </template>
<QuickFilterSettings v-if="!embedded" /> <QuickFilterSettings v-if="!embedded" class="timeline-header-button"/>
<QuickViewSettings v-if="!embedded" /> <QuickViewSettings v-if="!embedded" class="timeline-header-button"/>
</div> </div>
<div :class="classes.body"> <div :class="classes.body">
<div <div