Skip to content

Commit 33bdefc

Browse files
committed
fix(Data Source): Maximum height of long text box: 256px, content exceeding the height will scroll within the box
1 parent 0a6a6fb commit 33bdefc

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

frontend/src/style.less

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,10 @@ strong {
229229
background: #f0fbef !important;
230230

231231
.ed-message__icon {
232-
color: #34c724
232+
color: #34c724;
233233
}
234234
}
235235

236-
237236
.sq-message-export {
238237
min-width: 20px !important;
239238
padding: 16px 20px !important;
@@ -282,3 +281,7 @@ strong {
282281
margin-right: 8px;
283282
}
284283
}
284+
285+
.ed-button.is-secondary.is-disabled {
286+
border-color: #d9dcdf !important;
287+
}

frontend/src/views/ds/DataTable.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,13 @@ const btnSelectClick = (val: any) => {
431431
width="600"
432432
:destroy-on-close="true"
433433
:close-on-click-modal="false"
434+
modal-class="notes-dialog"
434435
@closed="closeTable"
435436
>
436437
<el-input
437438
v-model="tableComment"
438439
:placeholder="$t('datasource.please_enter')"
439-
:rows="3"
440+
:autosize="{ minRows: 3.64, maxRows: 11.095 }"
440441
type="textarea"
441442
clearable
442443
/>
@@ -452,12 +453,13 @@ const btnSelectClick = (val: any) => {
452453
width="600"
453454
:destroy-on-close="true"
454455
:close-on-click-modal="false"
456+
modal-class="notes-dialog"
455457
@closed="closeField"
456458
>
457459
<el-input
458460
v-model="fieldComment"
459461
:placeholder="$t('datasource.please_enter')"
460-
:rows="3"
462+
:autosize="{ minRows: 3.64, maxRows: 11.095 }"
461463
clearable
462464
type="textarea"
463465
/>
@@ -757,3 +759,11 @@ const btnSelectClick = (val: any) => {
757759
}
758760
}
759761
</style>
762+
763+
<style lang="less">
764+
.notes-dialog {
765+
.ed-textarea__inner {
766+
line-height: 22px;
767+
}
768+
}
769+
</style>

0 commit comments

Comments
 (0)