move definitions for timeline header buttons to Panel.scss, now called

rightside buttons
This commit is contained in:
Henry Jameson 2022-10-09 18:50:13 +03:00
parent ce6ce4b6cd
commit 0331e42ee8
6 changed files with 41 additions and 60 deletions

View File

@ -20,10 +20,12 @@
<QuickFilterSettings
v-if="!collapsable"
:conversation="true"
class="rightside-button"
/>
<QuickViewSettings
v-if="!collapsable"
:conversation="true"
class="rightside-button"
/>
</div>
<div class="conversation-body panel-body">

View File

@ -29,27 +29,6 @@
}
}
}
.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)) 0;
margin-right: calc(-1 * var(--__panel-heading-gap));
> button {
box-sizing: border-box;
padding: calc(1 * var(--panel-heading-height-padding)) 0;
height: 100%;
width: 100%;
text-align: center;
svg {
font-size: 1.2em;
}
}
}
}
.notification {

View File

@ -21,7 +21,7 @@
>{{ unseenCount }}</span>
</div>
<div
class="timeline-header-button"
class="rightside-button"
v-if="showScrollTop"
>
<button
@ -46,7 +46,7 @@
>
{{ $t('notifications.read') }}
</button>
<NotificationFilters class="timeline-header-button" />
<NotificationFilters class="rightside-button" />
</div>
<div class="panel-body">
<div

View File

@ -13,38 +13,6 @@
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)) 0;
margin-right: calc(-1 * var(--__panel-heading-gap));
> button {
box-sizing: border-box;
padding: calc(1 * var(--panel-heading-height-padding)) 0;
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);
margin-right: calc(-1 * var(--__panel-heading-gap));
svg {
font-size: 1.2em;
}
}
.loadmore-button {
position: relative
}

View File

@ -6,7 +6,7 @@
:timeline-name="timelineName"
/>
<div
class="timeline-header-button"
class="rightside-button"
v-if="showScrollTop && !embedded"
>
<button
@ -25,7 +25,7 @@
</div>
<template v-if="mobileLayout && !embedded">
<div
class="timeline-header-button"
class="rightside-button"
v-if="showLoadButton"
>
<button
@ -41,7 +41,7 @@
</div>
<div
v-else-if="!embedded"
class="loadmore-text faint veryfaint timeline-header-icon"
class="loadmore-text faint veryfaint rightside-icon"
@click.prevent
>
<FAIcon
@ -66,8 +66,8 @@
{{ $t('timeline.up_to_date') }}
</div>
</template>
<QuickFilterSettings v-if="!embedded" class="timeline-header-button"/>
<QuickViewSettings v-if="!embedded" class="timeline-header-button"/>
<QuickFilterSettings v-if="!embedded" class="rightside-button"/>
<QuickViewSettings v-if="!embedded" class="rightside-button"/>
</div>
<div :class="classes.body">
<div

View File

@ -196,6 +196,38 @@
}
}
}
.rightside-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)) 0;
margin-right: calc(-1 * var(--__panel-heading-gap));
> button {
box-sizing: border-box;
padding: calc(1 * var(--panel-heading-height-padding)) 0;
height: 100%;
width: 100%;
text-align: center;
svg {
font-size: 1.2em;
}
}
}
.rightside-icon {
align-self: stretch;
text-align: center;
width: var(--__panel-heading-height);
margin-right: calc(-1 * var(--__panel-heading-gap));
svg {
font-size: 1.2em;
}
}
}
.panel-footer {