Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: Sidebar icons spacing #26139

Merged
merged 10 commits into from
Jul 14, 2022
6 changes: 3 additions & 3 deletions apps/meteor/client/sidebar/header/actions/CreateRoom.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Sidebar, Dropdown } from '@rocket.chat/fuselage';
import { Sidebar, Dropdown, Box } from '@rocket.chat/fuselage';
import { useAtLeastOnePermission } from '@rocket.chat/ui-contexts';
import React, { HTMLAttributes, useRef, VFC } from 'react';
import { createPortal } from 'react-dom';
Expand All @@ -18,8 +18,8 @@ const CreateRoom: VFC<Omit<HTMLAttributes<HTMLElement>, 'is'>> = (props) => {
return (
<>
{showCreate && (
<Box ref={reference}>
<Sidebar.TopBar.Action {...props} icon='edit-rounded' onClick={(): void => toggle()} />
<Box ref={reference} {...props}>
<Sidebar.TopBar.Action icon='edit-rounded' onClick={(): void => toggle()} />
ggazzo marked this conversation as resolved.
Show resolved Hide resolved
</Box>
)}
{isVisible &&
Expand Down
6 changes: 3 additions & 3 deletions apps/meteor/client/sidebar/header/actions/Sort.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Sidebar, Dropdown } from '@rocket.chat/fuselage';
import { Sidebar, Dropdown, Box } from '@rocket.chat/fuselage';
import React, { VFC, useRef, HTMLAttributes } from 'react';
import { createPortal } from 'react-dom';

Expand All @@ -12,8 +12,8 @@ const Sort: VFC<Omit<HTMLAttributes<HTMLElement>, 'is'>> = (props) => {

return (
<>
<Box ref={reference}>
<Sidebar.TopBar.Action {...props} icon='sort' onClick={(): void => toggle()} />
<Box ref={reference} {...props}>
<Sidebar.TopBar.Action icon='sort' onClick={(): void => toggle()} />
</Box>
{isVisible &&
createPortal(
Expand Down