Skip to content

Commit b9a9466

Browse files
committed
up
1 parent 55ce311 commit b9a9466

File tree

7 files changed

+335
-298
lines changed

7 files changed

+335
-298
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "JETGenAI",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Sample Client app showing communication with OCI Generative AI services via Websocket",
55
"dependencies": {
66
"@oracle/oraclejet": "~16.1.0",

app/src/components/content/answer.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,22 @@ export const Answer = ({ item, sim }: Props) => {
4343
)}
4444
{!sim && (
4545
<li class="oj-flex demo-answer-layout">
46-
<div class="oj-flex-item oj-flex-bar">
47-
<div class="oj-sm-justify-content-flex-end oj-flex-bar-middle oj-sm-padding-2x demo-copy-paste oj-color-invert">
46+
<div class="oj-flex-item">
47+
<div class="oj-sm-justify-content-flex-end oj-sm-padding-2x-end oj-sm-12 demo-copy-paste oj-color-invert">
4848
<md-wrapper
4949
id="TestingOne"
50-
class="oj-sm-width-full"
50+
class="oj-sm-12"
5151
markdown={answer}
5252
/>
5353
</div>
54-
<div class="oj-flex-bar-end">
54+
{/* <div class="oj-flex-bar-end">
5555
<oj-avatar
5656
initials="A"
5757
size="sm"
5858
role="presentation"
5959
background="orange"
6060
></oj-avatar>
61-
</div>
61+
</div> */}
6262
</div>
6363
</li>
6464
)}

app/src/components/content/chat.tsx

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -77,30 +77,34 @@ export const Chat = ({ testId, data, questionChanged, question }: Props) => {
7777
};
7878

7979
return (
80-
<>
81-
<div class="oj-flex-item">
82-
<oj-list-view
83-
id="chatlist"
84-
ref={listRef}
85-
data-oj-context="true"
86-
aria-label="list of questions and answers"
87-
data={dataProvider.current}
88-
selectionMode="none"
89-
scrollPosition={scrollPos}
90-
class="oj-sm-width-full demo-chat-layout"
91-
>
92-
<template slot="itemTemplate" render={chatItemTemplate}></template>
93-
<template slot="noData" render={chatNoDataTemplate}></template>
94-
</oj-list-view>
80+
<div class="chat-wrapper">
81+
<div class="chat-container">
82+
<div class="chat-list-container">
83+
<oj-list-view
84+
id="chatlist"
85+
ref={listRef}
86+
data-oj-context="true"
87+
aria-label="list of questions and answers"
88+
data={dataProvider.current}
89+
selectionMode="none"
90+
scrollPosition={scrollPos}
91+
class="oj-sm-width-full demo-chat-layout"
92+
>
93+
<template slot="itemTemplate" render={chatItemTemplate}></template>
94+
<template slot="noData" render={chatNoDataTemplate}></template>
95+
</oj-list-view>
96+
</div>
97+
<div class="chat-input-container">
98+
<oj-input-search
99+
id="search1"
100+
class="oj-input-search-hero oj-sm-width-3"
101+
value={question?.current}
102+
placeholder="ask me anything..."
103+
aria-label="enter a question"
104+
onojValueAction={handleQuestionChange}
105+
></oj-input-search>
106+
</div>
95107
</div>
96-
<oj-input-search
97-
id="search1"
98-
class="oj-input-search-hero oj-sm-width-3"
99-
value={question?.current}
100-
placeholder="ask me anything..."
101-
aria-label="enter a question"
102-
onojValueAction={handleQuestionChange}
103-
></oj-input-search>
104-
</>
108+
</div>
105109
);
106110
};

app/src/styles/app.css

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ header.oj-web-applayout-header {
3434

3535
oj-sample-markdown-viewer .legacyStyling pre {
3636
color: black;
37+
white-space:pre-wrap;
38+
margin: unset;
39+
40+
}
41+
oj-sample-markdown-viewer .legacyStyling p {
42+
margin-right: 10px;
43+
3744
}
3845

3946
.copy-to-clip-btn {
@@ -52,6 +59,7 @@ oj-sample-markdown-viewer .legacyStyling pre {
5259
user-select: text;
5360
}
5461

62+
5563
.demo-bg-main {
5664
background-color: rgb(var(--oj-palette-neutral-rgb-10));
5765
box-shadow: var(--oj-core-box-shadow-md);
@@ -78,10 +86,14 @@ samp {
7886
margin: 20px 10px 50px 10px;
7987
border: 2px black;
8088
border-radius: 10px;
81-
padding: 10px 10px 10px 65px;
89+
padding: 10px;
8290
text-align: start;
8391
max-width: 1440px;
8492
}
93+
94+
.demo-answer-padding {
95+
margin-top:65px;
96+
}
8597
.demo-sim-answer-layout {
8698
min-height: 50px;
8799
display: inherit;
@@ -92,6 +104,7 @@ samp {
92104
text-align: end;
93105
max-width: 1440px;
94106
}
107+
95108
.demo-question-layout {
96109
min-height: 50px;
97110
/* background-color: #226b95; */
@@ -114,13 +127,13 @@ samp {
114127
}
115128

116129
.demo-chat-layout {
117-
max-height: 100%;
118-
height: 80%;
119-
min-height: 400px;
130+
max-height: 80%;
131+
height: 20%;
132+
min-height: calc(100vh - 200px);
120133
}
121134

122135
.demo-no-data-layout {
123-
height: 100%;
136+
height: 50%;
124137
align-items: center;
125138
}
126139

@@ -178,3 +191,4 @@ html[dir="rtl"] .demo-oracle-icon {
178191
transform: translate(-25%, -25%) scale(0.5);
179192
}
180193
}
194+

0 commit comments

Comments
 (0)