BUG修改 标题过长导致右边样式不统一

This commit is contained in:
a0049873 2022-07-26 10:54:19 +08:00
parent 15a3236516
commit fe5b5e1102
1 changed files with 30 additions and 14 deletions

View File

@ -108,20 +108,23 @@
> >
<template #title> <template #title>
<div> <div>
<span <a-tooltip>
@click=" <template #title>{{ item.resourceName }}</template>
showItem( <span
item.resourceId, @click="
item.type, showItem(
item.delFlag, item.resourceId,
item.note1 item.type,
) item.delFlag,
" item.note1
style="cursor: pointer" )
class="name" "
> style="cursor: pointer"
{{ item.resourceName }} class="name"
</span> >
{{ item.resourceName }}
</span>
</a-tooltip>
<span class="type">{{ item.type }}</span> <span class="type">{{ item.type }}</span>
</div> </div>
<span class="time"> <span class="time">
@ -973,6 +976,14 @@
color: #0087ff; color: #0087ff;
} }
} }
.name {
max-width: 4.15rem;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
word-break: break-all;
}
.name:hover { .name:hover {
color: #0087ff; color: #0087ff;
} }
@ -1048,5 +1059,10 @@
:deep(.ant-list-item-meta-title) { :deep(.ant-list-item-meta-title) {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center;
div {
display: flex;
align-items: center;
}
} }
</style> </style>