diff --git a/src/components/AppSidebarFooter.vue b/src/components/AppSidebarFooter.vue index ce41d2481c..5aca83f6d4 100644 --- a/src/components/AppSidebarFooter.vue +++ b/src/components/AppSidebarFooter.vue @@ -6,6 +6,15 @@ import PhosphorIcon from '@/components/PhosphorIcon' const props = defineProps({ compact: { type: Boolean + }, + noHelp: { + type: Boolean + }, + noRemoveAll: { + type: Boolean + }, + noSignOut: { + type: Boolean } }) @@ -26,17 +35,21 @@ const classList = computed(() => { @@ -52,6 +65,27 @@ const classList = computed(() => { background-color: #070707; } + &--compact { + flex-direction: column; + + .app-sidebar-footer__links__item, + .app-sidebar-footer__content, + .app-sidebar-footer__logo { + margin: 0; + } + + + .app-sidebar-footer__links { + order: -1; + flex-direction: column; + margin-bottom: $spacer; + + &__item { + margin-bottom: $spacer-xs; + } + } + } + &__logo { height: calc(#{$line-height-base * 1em} + #{$spacer-xxs * 2}); line-height: $line-height-base * 1em; @@ -76,9 +110,13 @@ const classList = computed(() => { &__item { text-align: center; - padding: $spacer-xxs; color: inherit; cursor: pointer; + margin: $spacer-xxs; + + &__icon:hover { + color: var(--bs-primary); + } } } } diff --git a/src/stories/components/AppSidebarFooter.stories.js b/src/stories/components/AppSidebarFooter.stories.js index 10ff8e8fac..e8da135fd3 100644 --- a/src/stories/components/AppSidebarFooter.stories.js +++ b/src/stories/components/AppSidebarFooter.stories.js @@ -8,16 +8,55 @@ export default { decorators: [vueRouter(routes)], title: 'Components/AppSidebar/Footer', tags: ['autodocs'], + argTypes: { + compact: { + control: { + type: 'boolean' + } + }, + noHelp: { + control: { + type: 'boolean' + } + }, + noRemoveAll: { + control: { + type: 'boolean' + } + }, + noSignOut: { + control: { + type: 'boolean' + } + } + }, render: (args) => ({ components: { AppSidebarFooter }, + setup: () => ({ args }), template: ` - + v17.1.0 ` }) } -export const Default = {} +export const Default = { + args: { + compact: false, + noHelp: false, + noRemoveAll: false, + noSignOut: true + } +} + +export const Compact = { + args: { + compact: true, + noHelp: true, + noRemoveAll: true, + noSignOut: true + } +}