File tree Expand file tree Collapse file tree 1 file changed +33
-27
lines changed
frontend/src/views/container/container Expand file tree Collapse file tree 1 file changed +33
-27
lines changed Original file line number Diff line number Diff line change 262262 </div >
263263 </template >
264264 </el-table-column >
265- <el-table-column :label =" $t('container.related')" min-width =" 210" prop =" appName" >
265+ <el-table-column
266+ :label =" $t('container.related')"
267+ show-overflow-tooltip
268+ min-width =" 210"
269+ prop =" appName"
270+ >
266271 <template #default =" { row } " >
267- <div >
268- <el-tooltip
269- v-if =" row.appName != ''"
270- :hide-after =" 20"
271- :content =" $t('app.app') + ': ' + row.appName + '[' + row.appInstallName + ']'"
272- placement =" top"
273- >
274- <el-button icon =" Position" plain size =" small" @click =" routerToName('AppInstalled')" >
275- {{ $t('app.app') }}: {{ row.appName }} [{{ row.appInstallName }}]
276- </el-button >
277- </el-tooltip >
278- </div >
279- <div >
280- <el-tooltip
281- v-if =" row.websites != null"
282- :hide-after =" 20"
283- :content =" row.websites.join(',')"
284- placement =" top"
285- class =" mt-1"
286- >
287- <el-button icon =" Position" plain size =" small" @click =" routerToName('Website')" >
288- {{ $t('menu.website') }}:
289- {{ row.websites.join(',') }}
290- </el-button >
291- </el-tooltip >
292- </div >
272+ <el-button v-if =" row.appName != '' || row.websites != null" link icon =" Position" />
273+ <el-text
274+ v-if =" row.appName != ''"
275+ link
276+ class =" cursor-pointer"
277+ size =" small"
278+ @click =" routerToName('AppInstalled')"
279+ >
280+ {{ $t('app.app') }}: {{ row.appName }} [{{ row.appInstallName }}]
281+ </el-text >
282+ <el-text
283+ v-if =" row.websites != null"
284+ link
285+ class =" cursor-pointer"
286+ size =" small"
287+ @click =" routerToName('Website')"
288+ >
289+ {{ $t('menu.website') }}:
290+ {{ row.websites.join(',') }}
291+ </el-text >
293292 </template >
294293 </el-table-column >
295294 <el-table-column
@@ -833,4 +832,11 @@ onMounted(() => {
833832 border : none ;
834833 }
835834}
835+ .button-cell {
836+ width : 100% ;
837+ max-width : 150px ;
838+ overflow : hidden ;
839+ text-overflow : ellipsis ;
840+ white-space : nowrap ;
841+ }
836842 </style >
You can’t perform that action at this time.
0 commit comments