Skip to content

Commit a346c83

Browse files
author
marker dao ®
committed
feat(chat pg): Set styles && Update maxHeight && Clean Informer
1 parent 806d61d commit a346c83

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

packages/devextreme/playground/jquery.html

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@
5656
min-height: 3.57em !important;
5757
}
5858

59-
.dx-chat-messagebox {
59+
/* .dx-chat-messagebox { */
6060
/* DEBUG */
6161
/* max-height: 39.29em !important; */
6262
/* END DEBUG */
63-
flex-shrink: 0;
64-
}
63+
/* flex-shrink: 0; */
64+
/* } */
6565

6666
/* .dx-chat-textarea {
6767
max-height: unset !important;
@@ -75,29 +75,30 @@
7575
/* END DEBUG */
7676

7777
.dx-texteditor-input {
78-
min-height: 4.29em !important;
79-
max-height: 17.85em !important;
78+
/* min-height: 4.29em !important; */
79+
/* max-height: 17.85em !important; */
80+
max-height: 7.1em !important;
8081
}
8182

82-
.dx-fileuploader-container {
83+
/* .dx-fileuploader-container {
8384
display: block !important;
8485
table-layout: unset !important;
85-
}
86+
} */
8687

87-
.dx-fileuploader-content {
88+
/* .dx-fileuploader-content {
8889
display: block !important;
89-
}
90+
} */
9091

91-
.dx-fileuploader-files-container {
92+
/* .dx-fileuploader-files-container {
9293
padding: 2px 3px 3px !important;
9394
display: grid;
9495
grid-template-columns: repeat(auto-fit, 17.14em);
9596
gap: 8px;
96-
}
97+
} */
9798

98-
.dx-fileuploader-file-container {
99+
/* .dx-fileuploader-file-container {
99100
margin-bottom: 0 !important;
100-
}
101+
} */
101102
</style>
102103
</head>
103104

@@ -130,14 +131,28 @@ <h1 style="position: fixed; left: 0; top: 0; clip: rect(1px, 1px, 1px, 1px);">Te
130131
const chat = $("#chat")
131132
.dxChat({
132133
// height: '95vh',
133-
height: 200,
134+
height: 600,
134135
dataSource,
135136
editing: {
136137
allowUpdating: true,
137138
},
138139
reloadOnChange: false,
139140
user: currentUser,
140141
showAvatar: false,
142+
alerts: [
143+
{
144+
message: 'One file attached and the message is a little longer',
145+
},
146+
{
147+
message: 'One file attached and the message is a little longer',
148+
},
149+
{
150+
message: 'One file attached and the message is a little longer',
151+
},
152+
{
153+
message: 'One file attached and the message is a little longer',
154+
},
155+
],
141156
onMessageEntered(e) {
142157
const { message } = e;
143158

0 commit comments

Comments
 (0)