Skip to content

Commit

Permalink
fixing responsive layout issue and header banner
Browse files Browse the repository at this point in the history
  • Loading branch information
jabrock committed Jan 25, 2024
1 parent 396da79 commit e0fe49d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/src/components/content/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const Chat = ({ testId, data }: Props) => {
data={dataProvider.current}
selectionMode="none"
scrollPosition={scrollPos}
class="oj-oj-sm-width-full demo-chat-layout"
class="oj-sm-width-full demo-chat-layout"
>
<template slot="itemTemplate" render={chatItemTemplate}></template>
<template slot="noData" render={chatNoDataTemplate}></template>
Expand Down
6 changes: 3 additions & 3 deletions app/src/components/content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,17 @@ const Content = () => {

return (
<div class="oj-web-applayout-max-width oj-web-applayout-content oj-flex oj-sm-flex-direction-column demo-bg-main">
{/* <div class="oj-flex-bar oj-flex-item demo-header">
<div class="oj-flex-bar oj-flex-item demo-header oj-sm-12">
<oj-c-message-toast
data={messagesDP.current}
position="top"
onojClose={handleToastClose}
></oj-c-message-toast>
<h1 class="oj-typography-heading-lg oj-flex-bar-start"> </h1>
<div class="oj-flex-bar-end oj-color-invert demo-header-end">
<h6 class="oj-sm-margin-2x-end">{connState}</h6>
{/* <h6 class="oj-sm-margin-2x-end">{connState}</h6> */}
</div>
</div> */}
</div>
<div class="oj-flex-item">
<Chat data={update} />
</div>
Expand Down
10 changes: 6 additions & 4 deletions app/src/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,14 @@ samp {
}

.demo-header {
background-color: rgb(var(--oj-palette-neutral-rgb-10));
max-height: 5px;
background-color: var(
--oj-sp-header-welcome-banner-background-color
) !important;
max-height: 150px;
}
.demo-header-end {
/* background-image: url(images/welcomeBanner-foreground2.png); */
max-height: 5px;
background-image: url(images/welcomeBanner-foreground2.png);
width: 600px;
justify-content: end;
}

Expand Down

0 comments on commit e0fe49d

Please sign in to comment.