fix: position of badges (#4657)

* fix: position of badges

* feat: mobile design added

* fix: minor ui bugs

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2022-09-28 00:51:41 +01:00
1 parent fca7087e7d
commit 699313ac70
2 files changed
+120 -55

No files matched your search

+1 -10
View File
@@ -64,15 +64,9 @@ const DropdownActions = ({
};
const TableActions: FC<Props> = ({ actions }) => {
const mobileActions = actions.flatMap((action) => {
if (action.actions) {
return action.actions;
}
return action;
});
return (
<>
<div className="hidden space-x-2 rtl:space-x-reverse lg:flex">
<div className="flex space-x-2 rtl:space-x-reverse">
{actions.map((action) => {
const button = (
<Button
@@ -93,9 +87,6 @@ const TableActions: FC<Props> = ({ actions }) => {
return <DropdownActions key={action.id} actions={action.actions} actionTrigger={button} />;
})}
</div>
<div className="inline-block text-left lg:hidden">
<DropdownActions actions={mobileActions} />
</div>
</>
);
};