fix(frontend): stabilize installed app card name truncation

This commit is contained in:
zhengkunwang223
2026-02-28 18:35:34 +08:00
committed by maninhill
parent 1705d44378
commit 9f00b431d4
4 changed files with 38 additions and 34 deletions
+1 -1
View File
@@ -2341,7 +2341,7 @@ const message = {
all: 'All',
version: 'Version',
detail: 'Details',
params: 'Edit parameters',
params: 'Parameters',
author: 'Author',
source: 'Source',
appName: 'Application Name',
+26 -26
View File
@@ -13,39 +13,39 @@
.a-detail {
.d-name {
.d-name-row {
gap: 8px;
min-width: 0;
}
.name-actions {
flex: 1;
min-width: 0;
flex-wrap: nowrap;
overflow: hidden;
}
.operate-actions {
flex-shrink: 0;
}
.name-wrap {
min-width: 0;
max-width: clamp(140px, 22vw, 320px);
flex-shrink: 1;
margin-right: 4px;
overflow: hidden;
}
.name {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 500;
font-size: 18px;
color: var(--panel-text-color);
max-width: 100px;
@media (min-width: 576px) {
max-width: 120px;
}
@media (min-width: 768px) {
max-width: 150px;
}
@media (min-width: 992px) {
max-width: 180px;
}
@media (min-width: 1200px) {
max-width: 220px;
}
@media (min-width: 1600px) {
max-width: 280px;
}
@media (min-width: 1920px) {
max-width: 350px;
}
max-width: 100%;
}
.status {
@@ -1,12 +1,12 @@
<template>
<div class="d-name">
<div class="flex items-center justify-between">
<div class="min-w-50 flex items-center justify-start gap-1">
<el-button link type="info">
<div class="d-name-row flex items-center justify-between">
<div class="name-actions flex items-center justify-start gap-1">
<div class="name-wrap">
<el-tooltip :content="installed.name" placement="top">
<span class="name">{{ installed.name }}</span>
</el-tooltip>
</el-button>
</div>
<span class="status">
<Status :key="installed.status" :status="installed.status"></Status>
</span>
@@ -94,7 +94,7 @@
</el-tooltip>
</span>
</div>
<div class="flex flex-wrap items-center justify-end gap-1">
<div class="operate-actions flex flex-wrap items-center justify-end gap-1">
<el-button
class="h-button"
plain
@@ -4,8 +4,8 @@
<el-form
:model="config"
label-position="left"
label-width="180px"
class="ml-2.5"
label-width="260px"
class="ml-2.5 app-setting-form"
v-loading="loading"
:rules="rules"
ref="configForm"
@@ -142,6 +142,10 @@ onMounted(() => {
</script>
<style lang="css" scoped>
.app-setting-form :deep(.el-form-item__label) {
white-space: nowrap;
}
.logText {
line-height: 22px;
font-size: 12px;