Skip to content

Commit

Permalink
feat: Allow to center Links items on display - MEED-7064 - Meeds-io/m…
Browse files Browse the repository at this point in the history
…eeds#2150 (#3890)

This change allows to center Links when the layout specifies a fixed
height for application container.
  • Loading branch information
boubaker authored Jun 13, 2024
1 parent 4ab4727 commit 4d2f0be
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
min-width="100%"
max-width="100%"
min-height="72"
class="d-flex flex-column align-center border-box-sizing justify-center pa-5 overflow-hidden position-relative card-border-radius app-background-color"
class="d-flex flex-column align-center border-box-sizing pa-5 overflow-hidden position-relative card-border-radius app-background-color"
flat>
<links-header
v-if="$root.initialized"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,26 @@

-->
<template>
<component
v-if="links?.length"
:is="isColumn && 'v-list' || 'card-carousel'"
:class="isColumn && 'pa-0' || 'mt-n2 mb-n4'"
v-bind="isColumn && {
dense: !largeIcon
}">
<div :class="!isColumn && 'my-auto'">
<component
v-for="link in links"
:key="link.id"
:is="componentName"
:link="link"
:type="type"
:large-icon="largeIcon"
:show-name="showName"
:show-description="showDescription" />
</component>
v-if="links?.length"
:is="isColumn && 'v-list' || 'card-carousel'"
:class="isColumn && 'pa-0' || 'mt-n2 mb-n4'"
class="full-width"
v-bind="isColumn && {
dense: !largeIcon
}">
<component
v-for="link in links"
:key="link.id"
:is="componentName"
:link="link"
:type="type"
:large-icon="largeIcon"
:show-name="showName"
:show-description="showDescription" />
</component>
</div>
</template>
<script>
export default {
Expand Down

0 comments on commit 4d2f0be

Please sign in to comment.