Commit cfdd1e33 authored by Chen Jiping's avatar Chen Jiping

fix:修复配置页面问题 fix:修复标题因内容太多显示不全的问题

parent 17f98669
...@@ -12,9 +12,7 @@ ...@@ -12,9 +12,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSpan]="3" nzFor="title">标题</nz-form-label> <nz-form-label [nzSpan]="3" nzFor="title">标题</nz-form-label>
<nz-form-control [nzSpan]="6"> <nz-form-control [nzSpan]="6">
<nz-input-group nzAddOnBefore="Part"> <input type="text" id="title" nz-input [(ngModel)]="item.title.val" (blur)="save()">
<input type="text" id="title" nz-input [(ngModel)]="item.title.val" (blur)="save()">
</nz-input-group>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
<nz-form-item> <nz-form-item>
......
...@@ -334,7 +334,7 @@ cc.Class({ ...@@ -334,7 +334,7 @@ cc.Class({
this.titleLabel = label; this.titleLabel = label;
const maxW = titleBgNode.width * 0.8; const maxW = titleBgNode.width * 0.7;
if (labelNode.width > maxW) { if (labelNode.width > maxW) {
labelNode.scale = maxW / labelNode.width; labelNode.scale = maxW / labelNode.width;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment