fix: refs #6630 fix css
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-01-09 14:24:29 +01:00
parent 94e4bb383a
commit 3e8744c837
2 changed files with 27 additions and 27 deletions

View File

@ -415,7 +415,7 @@ setLogTree();
<div class="line bg-grey"></div> <div class="line bg-grey"></div>
</QItem> </QItem>
<div <div
class="user-log q-mb-sm row" class="user-log q-mb-sm"
v-for="(userLog, userIndex) in originLog.logs" v-for="(userLog, userIndex) in originLog.logs"
:key="userIndex" :key="userIndex"
> >
@ -425,6 +425,7 @@ setLogTree();
class="cursor-pointer" class="cursor-pointer"
:worker="userLog.user.id" :worker="userLog.user.id"
:title="userLog.user.nickname" :title="userLog.user.nickname"
size="lg"
/> />
<WorkerDescriptorProxy <WorkerDescriptorProxy
v-if="userLog.user.image" v-if="userLog.user.image"
@ -823,14 +824,30 @@ setLogTree();
.q-item { .q-item {
min-height: 0px; min-height: 0px;
} }
.q-menu {
display: block;
& > .loading {
display: flex;
justify-content: center;
}
& > .q-card {
min-width: 180px;
max-width: 400px;
& > .header {
color: $dark;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
.origin-log { .origin-log {
&:first-child > .origin-info { &:first-child > .origin-info {
margin-top: 0; margin-top: 0;
} }
& > .origin-info { & > .origin-info {
width: 100%;
max-width: 42em;
margin-top: 28px; margin-top: 28px;
gap: 6px; gap: 6px;
@ -847,14 +864,15 @@ setLogTree();
} }
} }
.user-log { .user-log {
display: flex;
width: 100%; width: 100%;
max-width: 40em; max-width: 40em;
& > .timeline { & > .timeline {
position: relative; position: relative;
padding-right: 5px; padding-right: 1px;
width: 50px; width: 38px;
min-width: 38px; min-width: 38px;
flex-grow: auto;
& > .arrow { & > .arrow {
height: 8px; height: 8px;
width: 8px; width: 8px;
@ -874,7 +892,7 @@ setLogTree();
position: absolute; position: absolute;
background-color: $primary; background-color: $primary;
width: 2px; width: 2px;
left: 23px; left: 19px;
z-index: -1; z-index: -1;
top: 0; top: 0;
bottom: -8px; bottom: -8px;
@ -984,25 +1002,6 @@ setLogTree();
} }
} }
} }
.q-menu {
display: block;
& > .loading {
display: flex;
justify-content: center;
}
& > .q-card {
min-width: 180px;
max-width: 400px;
& > .header {
color: $dark;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
</style> </style>
<i18n> <i18n>
en: en:

View File

@ -5,13 +5,14 @@ const $props = defineProps({
worker: { type: Number, required: true }, worker: { type: Number, required: true },
description: { type: String, default: null }, description: { type: String, default: null },
clickable: { type: Boolean, default: false }, clickable: { type: Boolean, default: false },
size: { type: String, default: 'xl' },
}); });
const session = useSession(); const session = useSession();
const token = session.getToken(); const token = session.getToken();
</script> </script>
<template> <template>
<div class="avatar-picture column items-center"> <div class="avatar-picture column items-center">
<QAvatar color="orange"> <QAvatar color="orange" :size="$props.size">
<QImg <QImg
:src="`/api/Images/user/160x160/${$props.worker}/download?access_token=${token}`" :src="`/api/Images/user/160x160/${$props.worker}/download?access_token=${token}`"
spinner-color="white" spinner-color="white"