Skip to content

Commit 87b7ee8

Browse files
authored
feat: header position styles parameters (#525)
* Fix positioning of vac-room-header * added parameters to set own header style * added parameters to set own header style
1 parent 3c16ca0 commit 87b7ee8

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/lib/Room/RoomHeader/RoomHeader.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.vac-room-header {
2-
position: fixed;
2+
position: var(--chat-header-position);
33
display: flex;
44
align-items: center;
55
height: 64px;
6-
width: 100%;
6+
width: var(--chat-header-width);
77
z-index: 10;
88
margin-right: 1px;
99
background: var(--chat-header-bg-color);

src/themes/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ export const defaultThemeStyles = {
2323
header: {
2424
background: '#fff',
2525
colorRoomName: '#0a0a0a',
26-
colorRoomInfo: '#9ca6af'
26+
colorRoomInfo: '#9ca6af',
27+
position: 'absolute',
28+
width: '100%',
2729
},
2830

2931
footer: {
@@ -168,7 +170,9 @@ export const defaultThemeStyles = {
168170
header: {
169171
background: '#181a1b',
170172
colorRoomName: '#fff',
171-
colorRoomInfo: '#9ca6af'
173+
colorRoomInfo: '#9ca6af',
174+
position: 'absolute',
175+
width: '100%'
172176
},
173177

174178
footer: {
@@ -327,6 +331,8 @@ export const cssThemeVars = ({
327331
'--chat-header-bg-color': header.background,
328332
'--chat-header-color-name': header.colorRoomName,
329333
'--chat-header-color-info': header.colorRoomInfo,
334+
'--chat-header-position': header.position,
335+
'--chat-header-width': header.width,
330336

331337
// footer
332338
'--chat-footer-bg-color': footer.background,

0 commit comments

Comments
 (0)