Skip to content

Commit

Permalink
fix: fix background preview for default image
Browse files Browse the repository at this point in the history
Closes #4399.
  • Loading branch information
WofWca committed Dec 11, 2024
1 parent 696aa74 commit 3fd30ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- fix random crashes on quote reply #4337
- avoid drafts in readonly chats #4349
- fullscreen images getting cropped a little #4402, #4385
- settings: background preview element not working for the default background image #

<a id="1_49_0"></a>

Expand Down
10 changes: 1 addition & 9 deletions packages/frontend/src/components/Settings/Appearance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,7 @@ function BackgroundSelector({
<div>
<div className={'bg-option-wrap'}>
<div
style={{
...(desktopSettings.chatViewBgImg?.startsWith('img: ')
? getBackgroundImageStyle(desktopSettings)
: {
backgroundColor: desktopSettings.chatViewBgImg?.slice(7),
backgroundImage: 'unset',
}),
backgroundSize: 'cover',
}}
style={getBackgroundImageStyle(desktopSettings)}
aria-label={tx('a11y_background_preview_label')}
className={'background-preview'}
/>
Expand Down

0 comments on commit 3fd30ed

Please sign in to comment.