Skip to content

Commit 33a275b

Browse files
Improve instance rendering (#10165)
- Fix visual glitches on narrow viewports
1 parent 216bc0c commit 33a275b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/frontend/src/components/render/Instance.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export function RenderInlineModel({
214214
}
215215

216216
return (
217-
<Group gap='xs' justify='space-between' wrap='nowrap' title={tooltip}>
217+
<Group gap='xs' justify='space-between' title={tooltip}>
218218
<Group gap='xs' justify='left' wrap='nowrap'>
219219
{prefix}
220220
{image && <Thumbnail src={image} size={18} />}
@@ -260,7 +260,7 @@ export function InlineSecondaryBadge({
260260
}): ReactNode {
261261
return (
262262
<Paper p={2} withBorder style={{ backgroundColor: 'transparent' }}>
263-
<Group gap='xs'>
263+
<Group gap='xs' wrap='nowrap'>
264264
{title && (
265265
<Text size={size} title={title}>
266266
{title}:

src/frontend/src/components/render/Stock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function RenderStockItem(
111111

112112
// Form the "suffix" text to display
113113
const suffix: ReactNode = (
114-
<Group gap='xs'>
114+
<Group gap='xs' wrap='nowrap'>
115115
<Text size='xs'>{quantity_string}</Text>
116116
{location && (
117117
<TableHoverCard

0 commit comments

Comments
 (0)