diff --git a/frontend/src/components/del-dialog/index.vue b/frontend/src/components/del-dialog/index.vue index b9be1f787..66ab42f65 100644 --- a/frontend/src/components/del-dialog/index.vue +++ b/frontend/src/components/del-dialog/index.vue @@ -11,14 +11,14 @@
-
+
{{ item }}
    -
    +
  • {{ item }}
diff --git a/frontend/src/components/file-list/index.vue b/frontend/src/components/file-list/index.vue index d71a53482..9b5e8ea3b 100644 --- a/frontend/src/components/file-list/index.vue +++ b/frontend/src/components/file-list/index.vue @@ -59,7 +59,7 @@ class="mr-2 flex-shrink-0" > - {{ item.name }} + {{ item.name }}
diff --git a/frontend/src/styles/common.scss b/frontend/src/styles/common.scss index 664acbbf9..e5de00313 100644 --- a/frontend/src/styles/common.scss +++ b/frontend/src/styles/common.scss @@ -358,9 +358,8 @@ html { background: var(--panel-main-bg-color-10); pre { margin: 0; - width: 350px; - overflow: hidden; - text-overflow: ellipsis; + white-space: pre-wrap; + overflow-wrap: anywhere; } } diff --git a/frontend/src/styles/element.scss b/frontend/src/styles/element.scss index 02d8045d7..7a0bc9f17 100644 --- a/frontend/src/styles/element.scss +++ b/frontend/src/styles/element.scss @@ -286,3 +286,27 @@ html { border: 1px solid var(--panel-main-bg-color-10); background-color: var(--panel-main-bg-color-10) !important; } + +// Allow long object names in dialog titles and explanatory text to wrap. +.el-dialog__header, +.el-dialog__body, +.el-message-box__title, +.el-message-box__message { + overflow-wrap: anywhere; +} + +.el-dialog__title, +.el-message-box__title { + white-space: normal; +} + +.el-message-box__message, +.el-dialog .el-alert__content { + min-width: 0; +} + +.dialog-object-name { + min-width: 0; + white-space: normal; + overflow-wrap: anywhere; +} diff --git a/frontend/src/views/host/file-management/code-editor/index.vue b/frontend/src/views/host/file-management/code-editor/index.vue index b973f56c7..7ea63e340 100644 --- a/frontend/src/views/host/file-management/code-editor/index.vue +++ b/frontend/src/views/host/file-management/code-editor/index.vue @@ -10,7 +10,7 @@