Skip to content

Commit

Permalink
fix name overlapping for shared items tab
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Oct 16, 2023
1 parent 1494ff2 commit 3b8e6e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/RightSidebar/SharedItems/SharedItems.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<div v-else-if="isOther"
:key="item.id"
class="shared-items__other">
<a v-if="item.messageParameters.object.link"
<a v-if="item.messageParameters.object?.link"
:href="item.messageParameters.object.link"
target="_blank">
{{ item.messageParameters.object.name }}
Expand Down
8 changes: 4 additions & 4 deletions src/components/RightSidebar/SharedItems/SharedItemsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
-->

<template>
<div class="shared-items">
<LoadingComponent v-if="loading" class="shared-items__loading" />
<div class="shared-items-tab">
<LoadingComponent v-if="loading" class="shared-items-tab__loading" />

<template v-else>
<!-- Shared items grouped by type -->
Expand Down Expand Up @@ -64,7 +64,7 @@

<!-- No shared content -->
<NcEmptyContent v-else-if="!hasSharedItems && !hasRelatedResources"
class="shared-items__empty-content"
class="shared-items-tab__empty-content"
:name="t('spreed', 'No shared items')">
<template #icon>
<FolderMultipleImage :size="20" />
Expand Down Expand Up @@ -227,7 +227,7 @@ export default {
}
}

.shared-items {
.shared-items-tab {
display: flex;
flex-direction: column;
height: 100%;
Expand Down

0 comments on commit 3b8e6e9

Please sign in to comment.