Spaces:
Paused
Paused
dushyantsingh0 commited on
Commit ·
e367f90
1
Parent(s): d439891
fix: explicit left-alignment for images in all portals
Browse files
frontend/packages/shared/src/components/NexusMarkdown.tsx
CHANGED
|
@@ -160,7 +160,7 @@ export const NexusMarkdown: React.FC<NexusMarkdownProps> = ({ content, isMe }) =
|
|
| 160 |
}
|
| 161 |
|
| 162 |
return (
|
| 163 |
-
<div style={{ display: '
|
| 164 |
<img
|
| 165 |
src={decoratedSrc}
|
| 166 |
alt={alt || "Embedded Image"}
|
|
@@ -173,7 +173,8 @@ export const NexusMarkdown: React.FC<NexusMarkdownProps> = ({ content, isMe }) =
|
|
| 173 |
border: '1px solid var(--border-subtle)',
|
| 174 |
boxShadow: 'var(--shadow-md)',
|
| 175 |
display: 'block',
|
| 176 |
-
marginLeft: 0
|
|
|
|
| 177 |
}}
|
| 178 |
/>
|
| 179 |
{alt && <span style={{ display: 'block', fontSize: '13px', color: 'var(--text-muted)', marginTop: '8px', fontStyle: 'italic', fontWeight: 500, textAlign: 'left' }}>{alt}</span>}
|
|
|
|
| 160 |
}
|
| 161 |
|
| 162 |
return (
|
| 163 |
+
<div className="nexus-img-wrapper" style={{ display: 'flex', flexDirection: 'column', alignItems: 'flex-start', margin: '16px 0', textAlign: 'left', width: '100%' }}>
|
| 164 |
<img
|
| 165 |
src={decoratedSrc}
|
| 166 |
alt={alt || "Embedded Image"}
|
|
|
|
| 173 |
border: '1px solid var(--border-subtle)',
|
| 174 |
boxShadow: 'var(--shadow-md)',
|
| 175 |
display: 'block',
|
| 176 |
+
marginLeft: 0,
|
| 177 |
+
marginRight: 'auto'
|
| 178 |
}}
|
| 179 |
/>
|
| 180 |
{alt && <span style={{ display: 'block', fontSize: '13px', color: 'var(--text-muted)', marginTop: '8px', fontStyle: 'italic', fontWeight: 500, textAlign: 'left' }}>{alt}</span>}
|