Skip to content

Commit e0fe49d

Browse files
author
jabrock
committed
fixing responsive layout issue and header banner
1 parent 396da79 commit e0fe49d

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

app/src/components/content/chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const Chat = ({ testId, data }: Props) => {
7676
data={dataProvider.current}
7777
selectionMode="none"
7878
scrollPosition={scrollPos}
79-
class="oj-oj-sm-width-full demo-chat-layout"
79+
class="oj-sm-width-full demo-chat-layout"
8080
>
8181
<template slot="itemTemplate" render={chatItemTemplate}></template>
8282
<template slot="noData" render={chatNoDataTemplate}></template>

app/src/components/content/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,17 @@ const Content = () => {
141141

142142
return (
143143
<div class="oj-web-applayout-max-width oj-web-applayout-content oj-flex oj-sm-flex-direction-column demo-bg-main">
144-
{/* <div class="oj-flex-bar oj-flex-item demo-header">
144+
<div class="oj-flex-bar oj-flex-item demo-header oj-sm-12">
145145
<oj-c-message-toast
146146
data={messagesDP.current}
147147
position="top"
148148
onojClose={handleToastClose}
149149
></oj-c-message-toast>
150150
<h1 class="oj-typography-heading-lg oj-flex-bar-start"> </h1>
151151
<div class="oj-flex-bar-end oj-color-invert demo-header-end">
152-
<h6 class="oj-sm-margin-2x-end">{connState}</h6>
152+
{/* <h6 class="oj-sm-margin-2x-end">{connState}</h6> */}
153153
</div>
154-
</div> */}
154+
</div>
155155
<div class="oj-flex-item">
156156
<Chat data={update} />
157157
</div>

app/src/styles/app.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,14 @@ samp {
9494
}
9595

9696
.demo-header {
97-
background-color: rgb(var(--oj-palette-neutral-rgb-10));
98-
max-height: 5px;
97+
background-color: var(
98+
--oj-sp-header-welcome-banner-background-color
99+
) !important;
100+
max-height: 150px;
99101
}
100102
.demo-header-end {
101-
/* background-image: url(images/welcomeBanner-foreground2.png); */
102-
max-height: 5px;
103+
background-image: url(images/welcomeBanner-foreground2.png);
104+
width: 600px;
103105
justify-content: end;
104106
}
105107

0 commit comments

Comments
 (0)