Skip to content

Commit

Permalink
feat: header position styles parameters (#525)
Browse files Browse the repository at this point in the history
* Fix positioning of vac-room-header

* added parameters to set own header style

* added parameters to set own header style
  • Loading branch information
thierbig authored Apr 22, 2024
1 parent 3c16ca0 commit 87b7ee8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib/Room/RoomHeader/RoomHeader.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.vac-room-header {
position: fixed;
position: var(--chat-header-position);
display: flex;
align-items: center;
height: 64px;
width: 100%;
width: var(--chat-header-width);
z-index: 10;
margin-right: 1px;
background: var(--chat-header-bg-color);
Expand Down
10 changes: 8 additions & 2 deletions src/themes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export const defaultThemeStyles = {
header: {
background: '#fff',
colorRoomName: '#0a0a0a',
colorRoomInfo: '#9ca6af'
colorRoomInfo: '#9ca6af',
position: 'absolute',
width: '100%',
},

footer: {
Expand Down Expand Up @@ -168,7 +170,9 @@ export const defaultThemeStyles = {
header: {
background: '#181a1b',
colorRoomName: '#fff',
colorRoomInfo: '#9ca6af'
colorRoomInfo: '#9ca6af',
position: 'absolute',
width: '100%'
},

footer: {
Expand Down Expand Up @@ -327,6 +331,8 @@ export const cssThemeVars = ({
'--chat-header-bg-color': header.background,
'--chat-header-color-name': header.colorRoomName,
'--chat-header-color-info': header.colorRoomInfo,
'--chat-header-position': header.position,
'--chat-header-width': header.width,

// footer
'--chat-footer-bg-color': footer.background,
Expand Down

0 comments on commit 87b7ee8

Please sign in to comment.