mirror of
https://github.com/tale/headplane.git
synced 2026-08-22 10:46:38 +00:00
fix: allow tags to wrap
This commit is contained in:
@@ -17,7 +17,7 @@ export default function Chip({
|
|||||||
return (
|
return (
|
||||||
<span
|
<span
|
||||||
className={cn(
|
className={cn(
|
||||||
'h-5 text-xs py-0.5 px-1 rounded-md',
|
'h-5 text-xs py-0.5 px-1 rounded-md text-nowrap',
|
||||||
'text-headplane-700 dark:text-headplane-100',
|
'text-headplane-700 dark:text-headplane-100',
|
||||||
'bg-headplane-100 dark:bg-headplane-700',
|
'bg-headplane-100 dark:bg-headplane-700',
|
||||||
'inline-flex items-center gap-x-1',
|
'inline-flex items-center gap-x-1',
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export default function MachineRow({
|
|||||||
{node.givenName}
|
{node.givenName}
|
||||||
</p>
|
</p>
|
||||||
<p className="text-sm opacity-50">{node.user.name}</p>
|
<p className="text-sm opacity-50">{node.user.name}</p>
|
||||||
<div className="flex gap-1 mt-1.5">
|
<div className="flex gap-1 flex-wrap mt-1.5">
|
||||||
{mapTagsToComponents(node, uiTags)}
|
{mapTagsToComponents(node, uiTags)}
|
||||||
{node.validTags.map((tag) => (
|
{node.validTags.map((tag) => (
|
||||||
<Chip key={tag} text={tag} />
|
<Chip key={tag} text={tag} />
|
||||||
|
|||||||
Reference in New Issue
Block a user