Skip to content

Commit 8443f18

Browse files
committed
update example
1 parent 9f65ac0 commit 8443f18

File tree

4 files changed

+69
-35
lines changed

4 files changed

+69
-35
lines changed

CS/ReportingApp/wwwroot/css/site.css

+66-32
Original file line numberDiff line numberDiff line change
@@ -2,79 +2,113 @@
22
for details on configuring this project to bundle and minify static web assets. */
33

44
.dxrd-ai-assistant .dx-chat {
5-
width: 100%;
6-
height: 100%;
7-
border-radius: 0;
5+
width: 100%;
6+
height: 100%;
7+
border-radius: 0;
8+
}
9+
10+
.dx-chat-messagelist-content .dx-chat-messagegroup-alignment-start,
11+
.dx-chat-messagelist-content .dx-chat-last-messagegroup-alignment-start {
12+
column-gap: 0;
13+
}
14+
15+
.dx-chat-messagebubble-content li > ul {
16+
margin-bottom: 0;
17+
}
18+
.dx-chat-messagebubble-content ol,
19+
.dx-chat-messagebubble-content ul {
20+
white-space: normal;
21+
margin-left: -1rem;
22+
margin-bottom: -1rem;
23+
}
24+
.dx-chat-messagebubble-content p {
25+
margin-bottom: 0;
26+
}
27+
.dx-chat-messagebubble-content h1,
28+
.dx-chat-messagebubble-content h2,
29+
.dx-chat-messagebubble-content h3,
30+
.dx-chat-messagebubble-content h4,
31+
.dx-chat-messagebubble-content h5,
32+
.dx-chat-messagebubble-content h6 {
33+
font-size: revert;
34+
font-weight: revert;
35+
}
36+
.dx-chat-messagebubble-content > div > p:first-child {
37+
margin-top: 0;
38+
}
39+
40+
.dx-chat-messagebubble-content > div > p:last-child {
41+
margin-bottom: 0;
842
}
943

1044
a.navbar-brand {
11-
white-space: normal;
12-
text-align: center;
13-
word-break: break-all;
45+
white-space: normal;
46+
text-align: center;
47+
word-break: break-all;
1448
}
1549

1650
/* Provide sufficient contrast against white background */
1751
a {
18-
color: #0366d6;
52+
color: #0366d6;
1953
}
2054

2155
.btn-primary {
22-
color: #fff;
23-
background-color: #1b6ec2;
24-
border-color: #1861ac;
56+
color: #fff;
57+
background-color: #1b6ec2;
58+
border-color: #1861ac;
2559
}
2660

2761
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
28-
color: #fff;
29-
background-color: #1b6ec2;
30-
border-color: #1861ac;
62+
color: #fff;
63+
background-color: #1b6ec2;
64+
border-color: #1861ac;
3165
}
3266

3367
/* Sticky footer styles
3468
-------------------------------------------------- */
3569
html {
36-
font-size: 14px;
70+
font-size: 14px;
3771
}
3872
@media (min-width: 768px) {
39-
html {
40-
font-size: 16px;
41-
}
73+
html {
74+
font-size: 16px;
75+
}
4276
}
4377

4478
.border-top {
45-
border-top: 1px solid #e5e5e5;
79+
border-top: 1px solid #e5e5e5;
4680
}
4781
.border-bottom {
48-
border-bottom: 1px solid #e5e5e5;
82+
border-bottom: 1px solid #e5e5e5;
4983
}
5084

5185
.box-shadow {
52-
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
86+
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
5387
}
5488

5589
button.accept-policy {
56-
font-size: 1rem;
57-
line-height: inherit;
90+
font-size: 1rem;
91+
line-height: inherit;
5892
}
5993

6094
html {
61-
position: relative;
62-
min-height: 100%;
95+
position: relative;
96+
min-height: 100%;
6397
}
6498

6599
.container-fluid {
66-
flex-grow: 1;
67-
padding: 0;
100+
flex-grow: 1;
101+
padding: 0;
68102
}
69103

70104
.container-fluid main {
71-
height: 100%;
105+
height: 100%;
72106
}
73107

74108
.footer {
75-
bottom: 0;
76-
width: 100%;
77-
white-space: nowrap;
78-
line-height: 50px;
79-
height: 60px;
109+
bottom: 0;
110+
width: 100%;
111+
white-space: nowrap;
112+
line-height: 50px;
113+
height: 60px;
80114
}

CS/ReportingApp/wwwroot/js/aiIntegration.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
function normilizeAIResponse(text) {
22
text = text.replace(/\d+:\d+[^\】]+/g, "");
3-
const html = marked.parse(text)
4-
if (/^<p>.*<\/p>\s*$/.test(html))
5-
return text;
3+
let html = marked.parse(text);
4+
if (/<p>\.\s*<\/p>\s*$/.test(html))
5+
html = html.replace(/<p>\.\s*<\/p>\s*$/, "")
66
return html;
77
}
88

web-document-viewer.png

136 KB
Loading

web-report-designer.png

182 KB
Loading

0 commit comments

Comments
 (0)