Skip to content

Commit

Permalink
refactor: add comments about chat background
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca committed Dec 11, 2024
1 parent a5ddd30 commit d7426fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/frontend/scss/message/_message-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
display: flex;
flex-direction: column;
height: 100%;

// If you want to update this, don't forget to update
// the `.background-preview` element as well.
background-image: var(--chatViewBgImgPath);
background-size: cover;
background-color: var(--chatViewBg);

overflow: hidden;

.jump-down-button {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ export default function MessageListAndComposer({ accountId, chat }: Props) {
}, [onMouseUp])

const settingsStore = useSettingsStore()[0]
// If you want to update this, don't forget to update
// the `.background-preview` element as well.
const style = settingsStore
? getBackgroundImageStyle(settingsStore.desktopSettings)
: {}
Expand Down

0 comments on commit d7426fb

Please sign in to comment.