mirror of
https://github.com/inventree/InvenTree.git
synced 2025-09-13 22:21:37 +00:00
Improve instance rendering (#10165)
- Fix visual glitches on narrow viewports
This commit is contained in:
@@ -214,7 +214,7 @@ export function RenderInlineModel({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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'>
|
<Group gap='xs' justify='left' wrap='nowrap'>
|
||||||
{prefix}
|
{prefix}
|
||||||
{image && <Thumbnail src={image} size={18} />}
|
{image && <Thumbnail src={image} size={18} />}
|
||||||
@@ -260,7 +260,7 @@ export function InlineSecondaryBadge({
|
|||||||
}): ReactNode {
|
}): ReactNode {
|
||||||
return (
|
return (
|
||||||
<Paper p={2} withBorder style={{ backgroundColor: 'transparent' }}>
|
<Paper p={2} withBorder style={{ backgroundColor: 'transparent' }}>
|
||||||
<Group gap='xs'>
|
<Group gap='xs' wrap='nowrap'>
|
||||||
{title && (
|
{title && (
|
||||||
<Text size={size} title={title}>
|
<Text size={size} title={title}>
|
||||||
{title}:
|
{title}:
|
||||||
|
@@ -111,7 +111,7 @@ export function RenderStockItem(
|
|||||||
|
|
||||||
// Form the "suffix" text to display
|
// Form the "suffix" text to display
|
||||||
const suffix: ReactNode = (
|
const suffix: ReactNode = (
|
||||||
<Group gap='xs'>
|
<Group gap='xs' wrap='nowrap'>
|
||||||
<Text size='xs'>{quantity_string}</Text>
|
<Text size='xs'>{quantity_string}</Text>
|
||||||
{location && (
|
{location && (
|
||||||
<TableHoverCard
|
<TableHoverCard
|
||||||
|
Reference in New Issue
Block a user