mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-17 21:08:25 +08:00
style: Optimize container-associated resource styles (#11278)
Refs #11268
This commit is contained in:
parent
307029272e
commit
d801b811d4
1 changed files with 33 additions and 27 deletions
|
|
@ -262,34 +262,33 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('container.related')" min-width="210" prop="appName">
|
<el-table-column
|
||||||
|
:label="$t('container.related')"
|
||||||
|
show-overflow-tooltip
|
||||||
|
min-width="210"
|
||||||
|
prop="appName"
|
||||||
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<div>
|
<el-button v-if="row.appName != '' || row.websites != null" link icon="Position" />
|
||||||
<el-tooltip
|
<el-text
|
||||||
v-if="row.appName != ''"
|
v-if="row.appName != ''"
|
||||||
:hide-after="20"
|
link
|
||||||
:content="$t('app.app') + ': ' + row.appName + '[' + row.appInstallName + ']'"
|
class="cursor-pointer"
|
||||||
placement="top"
|
size="small"
|
||||||
>
|
@click="routerToName('AppInstalled')"
|
||||||
<el-button icon="Position" plain size="small" @click="routerToName('AppInstalled')">
|
>
|
||||||
{{ $t('app.app') }}: {{ row.appName }} [{{ row.appInstallName }}]
|
{{ $t('app.app') }}: {{ row.appName }} [{{ row.appInstallName }}]
|
||||||
</el-button>
|
</el-text>
|
||||||
</el-tooltip>
|
<el-text
|
||||||
</div>
|
v-if="row.websites != null"
|
||||||
<div>
|
link
|
||||||
<el-tooltip
|
class="cursor-pointer"
|
||||||
v-if="row.websites != null"
|
size="small"
|
||||||
:hide-after="20"
|
@click="routerToName('Website')"
|
||||||
:content="row.websites.join(',')"
|
>
|
||||||
placement="top"
|
{{ $t('menu.website') }}:
|
||||||
class="mt-1"
|
{{ row.websites.join(',') }}
|
||||||
>
|
</el-text>
|
||||||
<el-button icon="Position" plain size="small" @click="routerToName('Website')">
|
|
||||||
{{ $t('menu.website') }}:
|
|
||||||
{{ row.websites.join(',') }}
|
|
||||||
</el-button>
|
|
||||||
</el-tooltip>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
@ -833,4 +832,11 @@ onMounted(() => {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.button-cell {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 150px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue