Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates to handle mobile layout better #39

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions app/src/components/content/answer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ export const Answer = ({ item, sim }: Props) => {
)}
{!sim && (
<li class="oj-flex demo-answer-layout">
<div class="oj-flex-item oj-flex-bar">
<div class="oj-sm-justify-content-flex-end oj-flex-bar-middle oj-sm-padding-2x demo-copy-paste oj-color-invert">
<div class="oj-flex-item">
<div class="oj-sm-justify-content-flex-end oj-sm-padding-2x-end oj-sm-12 demo-copy-paste oj-color-invert">
<md-wrapper
id="TestingOne"
class="oj-sm-width-full"
class="oj-sm-12"
markdown={answer}
/>
</div>
<div class="oj-flex-bar-end">
{/* <div class="oj-flex-bar-end">
<oj-avatar
initials="A"
size="sm"
role="presentation"
background="orange"
></oj-avatar>
</div>
</div> */}
</div>
</li>
)}
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/content/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const Chat = ({ testId, data, questionChanged, question }: Props) => {

return (
<>
<div class="oj-flex-item">
<div class="oj-flex-item oj-sm-12">
<oj-list-view
id="chatlist"
ref={listRef}
Expand Down
16 changes: 14 additions & 2 deletions app/src/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ header.oj-web-applayout-header {

oj-sample-markdown-viewer .legacyStyling pre {
color: black;
white-space:pre-wrap;
margin: unset;

}
oj-sample-markdown-viewer .legacyStyling p {
margin-right: 10px;

}

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


.demo-bg-main {
background-color: rgb(var(--oj-palette-neutral-rgb-10));
box-shadow: var(--oj-core-box-shadow-md);
Expand All @@ -78,10 +86,14 @@ samp {
margin: 20px 10px 50px 10px;
border: 2px black;
border-radius: 10px;
padding: 10px 10px 10px 65px;
padding: 10px;
text-align: start;
max-width: 1440px;
}

.demo-answer-padding {
margin-top:65px;
}
.demo-sim-answer-layout {
min-height: 50px;
display: inherit;
Expand Down Expand Up @@ -116,7 +128,7 @@ samp {
.demo-chat-layout {
max-height: 100%;
height: 80%;
min-height: 400px;
min-height: calc(100vh - 200px);
}

.demo-no-data-layout {
Expand Down