mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-08 00:52:37 +01:00
🎨 feat: enhance UI & accessibility in file handling components (#5086)
* ✨ feat: Add localization for page display and enhance button styles * ✨ refactor: improve image preview component styles * ✨ refactor: enhance modal close behavior and prevent refocus on certain elements * ✨ refactor: enhance file row layout and improve image preview animation
This commit is contained in:
parent
bdb222d5f4
commit
dfe5498301
11 changed files with 466 additions and 279 deletions
|
|
@ -73,8 +73,9 @@ export default function FileRow({
|
|||
}
|
||||
|
||||
const renderFiles = () => {
|
||||
// Inline style for RTL
|
||||
const rowStyle = isRTL ? { display: 'flex', flexDirection: 'row-reverse' } : {};
|
||||
const rowStyle = isRTL
|
||||
? { display: 'flex', flexDirection: 'row-reverse', gap: '4px' }
|
||||
: { display: 'flex', gap: '4px' };
|
||||
|
||||
return (
|
||||
<div style={rowStyle as React.CSSProperties}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue