Skip to content

Commit a8059c0

Browse files
authored
Merge pull request #39 from oracle-devrel/mobile-layout-fixes
updates to handle mobile layout better
2 parents 057516f + ddcef0f commit a8059c0

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const Chat = ({ testId, data, questionChanged, question }: Props) => {
7070

7171
return (
7272
<>
73-
<div class="oj-flex-item">
73+
<div class="oj-flex-item oj-sm-12">
7474
<oj-list-view
7575
id="chatlist"
7676
ref={listRef}

app/src/styles/app.css

Lines changed: 14 additions & 2 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;
@@ -116,7 +128,7 @@ samp {
116128
.demo-chat-layout {
117129
max-height: 100%;
118130
height: 80%;
119-
min-height: 400px;
131+
min-height: calc(100vh - 200px);
120132
}
121133

122134
.demo-no-data-layout {

0 commit comments

Comments
 (0)