mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-01 13:19:18 +08:00
fix(editor): 修复pagebar文字超长换行问题
This commit is contained in:
parent
759b26481d
commit
5350c9050c
@ -11,9 +11,13 @@
|
|||||||
:class="{ active: page?.id === item.id }"
|
:class="{ active: page?.id === item.id }"
|
||||||
@click="switchPage(item)"
|
@click="switchPage(item)"
|
||||||
>
|
>
|
||||||
|
<div class="m-editor-page-bar-title">
|
||||||
<slot name="page-bar-title" :page="item">
|
<slot name="page-bar-title" :page="item">
|
||||||
|
<el-tooltip effect="dark" placement="top-start" :content="item.name">
|
||||||
<span>{{ item.name }}</span>
|
<span>{{ item.name }}</span>
|
||||||
|
</el-tooltip>
|
||||||
</slot>
|
</slot>
|
||||||
|
</div>
|
||||||
|
|
||||||
<el-popover placement="top" :width="160" trigger="hover">
|
<el-popover placement="top" :width="160" trigger="hover">
|
||||||
<div>
|
<div>
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
color: $--font-color;
|
color: $--font-color;
|
||||||
border-top: 1px solid $--border-color;
|
border-top: 1px solid $--border-color;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
.m-editor-page-bar-item {
|
.m-editor-page-bar-item {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
@ -27,5 +28,12 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.m-editor-page-bar-title {
|
||||||
|
max-width: 150px;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user