Skip to content

Commit d01592c

Browse files
author
hikki
committed
v3 css
1 parent ec9595b commit d01592c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

resources/assets/component.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@
246246
border-radius: 3px 3px 0 0;
247247
height: 18px!important;
248248
}
249+
.plane-header .header-content{
250+
margin-right: auto;
251+
display: flex;
252+
}
249253
.plane-header .title{
250254
color: rgb(255 0 141);
251255
max-width: 120px;

resources/assets/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ class ComponentCascadeLine {
13701370
let panelDom = this.DOM.childNodes[0].lastChild;
13711371
this.PLANE_DOM = panelDom;
13721372
let T = document.createElement('div');
1373-
T.style.marginRight = 'auto';
1373+
T.className = 'header-content';
13741374
T.insertAdjacentHTML('afterbegin', _component.node + ` <span style="vertical-align: top;">${title}</span>`);
13751375
panelDom.querySelector('.plane-header').append(T);
13761376

@@ -1506,7 +1506,7 @@ class ComponentCascadeLine {
15061506
let panelDom = this.DOM.childNodes[0].lastChild;
15071507
this.PLANE_DOM = panelDom;
15081508
let T = document.createElement('div');
1509-
T.style.marginRight = 'auto';
1509+
T.className = 'header-content';
15101510
T.insertAdjacentHTML('afterbegin', _component.node + ` <span style="vertical-align: top;">${title}</span>`);
15111511
panelDom.querySelector('.plane-header').append(T);
15121512
/*X close panel*/

0 commit comments

Comments
 (0)