Skip to content

Commit

Permalink
CRISTAL-409: No attachments message is badly aligned (#576)
Browse files Browse the repository at this point in the history
* Fix for the alignment issue on Vuetify
  • Loading branch information
tkrieck authored Jan 14, 2025
1 parent a639412 commit ae8a53b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions core/attachments/attachments-ui/src/vue/AttachmentsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ function attachmentName(name: string) {
}
</script>
<template>
<span v-if="isLoading">{{ t("attachments.tab.loading") }}</span>
<span v-else-if="errorMessage">{{ errorMessage }}</span>
<span v-else-if="attachments.length == 0">
<span class="str-loading" v-if="isLoading">{{ t("attachments.tab.loading") }}</span>
<span class="str-error" v-else-if="errorMessage">{{ errorMessage }}</span>
<span class="str-no-attachment" v-else-if="attachments.length == 0">
{{ t("attachments.tab.noAttachments") }}
</span>
<table v-else class="mobile-transform">
Expand Down Expand Up @@ -124,3 +124,8 @@ function attachmentName(name: string) {
</tbody>
</table>
</template>
<style scoped>
.v-card-text .str-no-attachment {
padding: 0 var(--cr-spacing-medium);
}
</style>

0 comments on commit ae8a53b

Please sign in to comment.