Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit

Permalink
fix resource action styling by putting all the action buttons in same…
Browse files Browse the repository at this point in the history
… div (#611)

Co-authored-by: Pirman Kenneth William <pirman@bb-c02sg3sdfvh8.epfl.ch>
  • Loading branch information
kenjinp and Pirman Kenneth William authored Mar 23, 2020
1 parent 2de35f9 commit d194131
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/shared/components/ResourceActions/ResourceActions.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
padding: @default-pad 0;
font-size: 0.8rem;

> .action,
button {
margin-right: 5px;
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/ResourceActions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const ResourceActions: React.FunctionComponent<{
});
}, [resource._self, resource._rev]);

return <span>{actionButtons}</span>;
return <>{actionButtons}</>;
};

export default ResourceActions;
10 changes: 5 additions & 5 deletions src/shared/containers/ResourceActionsContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,17 @@ const ResourceActionsContainer: React.FunctionComponent<{
</Tooltip>
)}
/>
<ResourceDownloadButton
orgLabel={orgLabel}
projectLabel={projectLabel}
resourceId={encodeURIComponent(resourceId)}
/>
<ResourceActions
resource={resource}
actions={actions}
actionTypes={actionTypes}
/>
</div>
<ResourceDownloadButton
orgLabel={orgLabel}
projectLabel={projectLabel}
resourceId={encodeURIComponent(resourceId)}
/>
</div>
);
};
Expand Down

0 comments on commit d194131

Please sign in to comment.