fix:hyperlink popup max width
This commit is contained in:
@@ -1,13 +1,9 @@
|
|||||||
.ce-hyperlink-popup {
|
.ce-hyperlink-popup {
|
||||||
min-width: 100px;
|
|
||||||
font-size: 12px;
|
|
||||||
line-height: 20px;
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: 0 2px 12px 0 rgb(98 107 132 / 20%);
|
box-shadow: 0 2px 12px 0 rgb(98 107 132 / 20%);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
color: #3d4757;
|
color: #3d4757;
|
||||||
padding: 16px;
|
padding: 12px 16px;
|
||||||
white-space: nowrap;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -15,10 +11,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ce-hyperlink-popup a {
|
.ce-hyperlink-popup a {
|
||||||
|
min-width: 100px;
|
||||||
|
max-width: 300px;
|
||||||
|
font-size: 12px;
|
||||||
|
display: inline-block;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom-width: 1px;
|
border-bottom-width: 1px;
|
||||||
border-bottom-style: solid;
|
border-bottom-style: solid;
|
||||||
padding-bottom: 2px;
|
|
||||||
color: #0000ff;
|
color: #0000ff;
|
||||||
}
|
}
|
||||||
@@ -45,6 +45,7 @@ export class HyperlinkParticle {
|
|||||||
// 标签
|
// 标签
|
||||||
const url = element.url || '#'
|
const url = element.url || '#'
|
||||||
this.hyperlinkDom.href = url
|
this.hyperlinkDom.href = url
|
||||||
|
this.hyperlinkDom.title = url
|
||||||
this.hyperlinkDom.innerText = url
|
this.hyperlinkDom.innerText = url
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user