[Fix][UI Next][V1.0.0-Alpha] Fixed an issue with long workflow names (#9217)

migrate-dev-docs-to-main
labbomb 2022-03-27 16:53:02 +08:00 committed by GitHub
parent aea0025035
commit 91319e3111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -224,7 +224,9 @@ export default defineComponent({
label={t('project.workflow.workflow_name')} label={t('project.workflow.workflow_name')}
path='workflow_name' path='workflow_name'
> >
{this.row.name} <div class={styles.formItem} title={this.row.name}>
{this.row.name}
</div>
</NFormItem> </NFormItem>
<NFormItem <NFormItem
label={t('project.workflow.failure_strategy')} label={t('project.workflow.failure_strategy')}

View File

@ -95,3 +95,10 @@
margin-right: 5px; margin-right: 5px;
} }
} }
.formItem {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
}