Skip to content

Commit

Permalink
Fix API access method cell items alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
raksooo authored and MarkusPettersson98 committed Oct 23, 2024
1 parent acfd6f4 commit 0aaf3f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gui/src/renderer/components/ApiAccessMethods.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ import { StyledContent, StyledNavigationScrollbars, StyledSettingsContent } from
import { SmallButton, SmallButtonColor, SmallButtonGroup } from './SmallButton';

const StyledContextMenuButton = styled(Cell.Icon)({
alignItems: 'center',
justifyContent: 'center',
marginRight: '8px',
});

Expand Down
2 changes: 2 additions & 0 deletions gui/src/renderer/components/ContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const menuContext = React.createContext<MenuContext>({
const StyledMenuContainer = styled.div({
position: 'relative',
padding: '8px 4px',
display: 'flex',
justifyContent: 'center',
});

export function ContextMenuContainer(props: React.PropsWithChildren) {
Expand Down
6 changes: 5 additions & 1 deletion gui/src/renderer/components/cell/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ const StyledLabel = styled.div<{ disabled: boolean }>(buttonText, (props) => ({
textAlign: 'left',

[`${LabelContainer} &&`]: {
marginTop: '5px',
marginTop: '0px',
marginBottom: 0,
height: '20px',
lineHeight: '20px',
},

[`${LabelContainer}:has(${StyledSubLabel}) &&`]: {
marginTop: '5px',
},
}));

const StyledSubText = styled.span<{ disabled: boolean }>(tinyText, (props) => ({
Expand Down

0 comments on commit 0aaf3f1

Please sign in to comment.