Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions graylog2-web-interface/src/components/bootstrap/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ const StyledRow = styled.div`
}
`;

const Row = ({ children = undefined, as = undefined, ...rest }: Props, ref: React.ForwardedRef<HTMLDivElement>) => (
<StyledRow ref={ref} as={as} {...rest}>
const Row = (
{ children = undefined, as = undefined, className = undefined, ...rest }: Props,
ref: React.ForwardedRef<HTMLDivElement>,
) => (
<StyledRow ref={ref} as={as} className={`${className ?? ''} row`} {...rest}>

@linuspahl linuspahl Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally prefer using styled(Row) over

.row {
  margin-right: 0;
}

or even better adding a prop to the Row component to change its appearance.

But since there are already multiple cases where we apply the styling via the row class, it would require a bigger refactoring.

{children}
</StyledRow>
);
Expand Down
Loading