Various front-end fixes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-10-31 13:03:03 +01:00
parent ecb862f634
commit e0127afd2b
8 changed files with 32 additions and 21 deletions

View File

@@ -6,7 +6,7 @@
<div class="flex pl-2">
<figure class="w-12 h-12" v-if="actor.avatar">
<img
class="rounded-lg"
class="rounded-full object-cover h-full"
:src="actor.avatar.url"
alt=""
width="48"

View File

@@ -146,7 +146,7 @@ const props = defineProps<{
const emit = defineEmits(["update:modelValue", "deleteComment"]);
const { t } = useI18n({useScope: 'global'});
const { t } = useI18n({ useScope: "global" });
const comment = computed(() => props.modelValue);

View File

@@ -2,7 +2,7 @@
<LinkOrRouterLink
:to="to"
:isInternal="isInternal"
class="mbz-card shrink-0 dark:bg-mbz-purple dark:text-white rounded-lg shadow-lg my-4 flex items-center flex-col"
class="mbz-card shrink-0 dark:bg-mbz-purple dark:text-white rounded-lg shadow-lg flex items-center flex-col"
:class="{
'sm:flex-row': mode === 'row',
'sm:max-w-xs sm:w-[18rem] shrink-0 flex flex-col': mode === 'column',

View File

@@ -77,9 +77,9 @@
>
<div class="flex gap-1 items-center">
<div class="flex-none">
<figure class="" v-if="identity.avatar">
<figure class="h-8 w-8" v-if="identity.avatar">
<img
class="rounded-full h-8 w-8"
class="rounded-full object-cover h-full"
loading="lazy"
:src="identity.avatar.url"
alt=""

View File

@@ -238,7 +238,7 @@ import FormatListNumbered from "vue-material-design-icons/FormatListNumbered.vue
import FormatQuoteClose from "vue-material-design-icons/FormatQuoteClose.vue";
import Undo from "vue-material-design-icons/Undo.vue";
import Redo from "vue-material-design-icons/Redo.vue";
import Placeholder from '@tiptap/extension-placeholder'
import Placeholder from "@tiptap/extension-placeholder";
const props = withDefaults(
defineProps<{
@@ -332,8 +332,8 @@ const editor = useEditor({
submit: () => emit("submit"),
}),
Placeholder.configure({
placeholder: props.placeholder ?? t('Write something')
})
placeholder: props.placeholder ?? t("Write something"),
}),
],
injectCSS: false,
content: props.modelValue,