diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-12-13 14:18:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-13 14:18:13 +0300 |
commit | bf9893f408845457e130291237370f1e675b3e8f (patch) | |
tree | c34e278696cefbad1fd9304cc93b9369ec2bf697 | |
parent | 6c05d92032d0c98bdba871c1f1b740c2b7aed4e8 (diff) | |
parent | f151ffb01cea6062bb4692e6188ea976b8ab394e (diff) |
Merge pull request #6695 from nextcloud/backport/6649/stable23
[stable23] Improve grid pagination buttons
-rw-r--r-- | src/components/CallView/Grid/Grid.vue | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/src/components/CallView/Grid/Grid.vue b/src/components/CallView/Grid/Grid.vue index e325a17e4..89957a978 100644 --- a/src/components/CallView/Grid/Grid.vue +++ b/src/components/CallView/Grid/Grid.vue @@ -41,12 +41,14 @@ <transition :name="isStripe ? 'slide-down' : ''"> <div v-if="!isStripe || stripeOpen" class="wrapper" :style="wrapperStyle"> <div :class="{'stripe-wrapper': isStripe, 'wrapper': !isStripe}"> - <button v-if="hasPreviousPage && gridWidth > 0 && showVideoOverlay" + <button v-if="hasPreviousPage && gridWidth > 0" + :class="{'stripe': isStripe}" class="grid-navigation grid-navigation__previous" :aria-label="t('spreed', 'Previous page of videos')" @click="handleClickPrevious"> <ChevronLeft decorative + fill-color="#ffffff" title="" :size="24" /> </button> @@ -112,12 +114,14 @@ @switch-screen-to-id="switchScreenToId" @click-video="handleClickLocalVideo" /> </div> - <button v-if="hasNextPage && gridWidth > 0 && showVideoOverlay" + <button v-if="hasNextPage && gridWidth > 0" class="grid-navigation grid-navigation__next" + :class="{'stripe': isStripe}" :aria-label="t('spreed', 'Next page of videos')" @click="handleClickNext"> <ChevronRight decorative + fill-color="#ffffff" title="" :size="24" /> </button> @@ -903,31 +907,40 @@ export default { position: absolute; width: 44px; height: 44px; - background-color: white; - opacity: 0.6 !important; - /* Center icons vertically in the grid view */ top: calc(50% - 22px); z-index: 2; - box-shadow: 0 0 4px var(--color-box-shadow); padding: 0; margin: 0; + border: 0; + display: flex; + align-items: center; + justify-content: center; + background-color: rgba(0, 0, 0, 0.5) !important; &:hover, &:focus { - background-color: var(var(--color-primary-element-light)); - border: 1px solid white; opacity: 1 !important; + background-color: rgba(0, 0, 0, 0.8) !important; + } &__previous { - left: 12px; + left: -4px; } &__next { - right: 12px; + right: -4px; } } +.grid-navigation__previous.stripe { + left: 8px; +} + +.grid-navigation__next.stripe { + right: 16px; +} + .stripe-wrapper .grid-navigation { - top: 12px; + top: 16px; } .pages-indicator { |