2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-13 06:01:35 +00:00

Improve instance rendering (#10165)

- Fix visual glitches on narrow viewports
This commit is contained in:
Oliver
2025-08-13 01:40:05 +10:00
committed by GitHub
parent 216bc0cba5
commit 33a275b69f
2 changed files with 3 additions and 3 deletions

View File

@@ -214,7 +214,7 @@ export function RenderInlineModel({
}
return (
<Group gap='xs' justify='space-between' wrap='nowrap' title={tooltip}>
<Group gap='xs' justify='space-between' title={tooltip}>
<Group gap='xs' justify='left' wrap='nowrap'>
{prefix}
{image && <Thumbnail src={image} size={18} />}
@@ -260,7 +260,7 @@ export function InlineSecondaryBadge({
}): ReactNode {
return (
<Paper p={2} withBorder style={{ backgroundColor: 'transparent' }}>
<Group gap='xs'>
<Group gap='xs' wrap='nowrap'>
{title && (
<Text size={size} title={title}>
{title}:

View File

@@ -111,7 +111,7 @@ export function RenderStockItem(
// Form the "suffix" text to display
const suffix: ReactNode = (
<Group gap='xs'>
<Group gap='xs' wrap='nowrap'>
<Text size='xs'>{quantity_string}</Text>
{location && (
<TableHoverCard