[Glitch] Fix regressions caused by rendering default translation wrapper element

Port 39ad873589 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion authored and Claire committed 2026-03-26 18:29:11 +01:00
1 parent a16b441c70
commit 915fd0933a
22 files changed
+52 -40

No files matched your search

@@ -37,7 +37,11 @@ export const ItemList = forwardRef<
}
>(({ isLoading, emptyMessage, className, children, ...otherProps }, ref) => {
if (!isLoading && Children.count(children) === 0 && emptyMessage) {
return <div className='empty-column-indicator'>{emptyMessage}</div>;
return (
<div className='empty-column-indicator'>
<span>{emptyMessage}</span>
</div>
);
}
return (
@@ -385,7 +385,7 @@ class ScrollableList extends PureComponent {
{alwaysPrepend && prepend}
<div className='empty-column-indicator'>
{emptyMessage}
<span>{emptyMessage}</span>
</div>
{footer}