enhancement: update thumbnail chat width option setting #4284
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe Your Changes
Image Updates and Additions:
compact-width-dark.png
andfull-width-dark.png
are added toweb/public/images/
.compact-width.png
andfull-width.png
have been modified.Component Updates in
index.tsx
:twMerge
fromtailwind-merge
to handle Tailwind CSS class merging has been added.useTheme
hook now also retrieves thetheme
variable, in addition tosetTheme
.chatWidthOption
array is updated to includedarkImg
properties for each width option.src
attribute of the<img>
tag is now conditionally set based on the theme: it usesoption.darkImg
if the theme is 'dark', andoption.img
otherwise.<label>
no longer contains a radio<input>
. Instead, it directly triggers thesetChatWidth(option.value)
action using anonClick
event.These changes suggest updates to improve the theming capabilities of an application, specifically around handling light and dark themes more gracefully in the appearance settings UI.
Fixes Issues
Self Checklist