Skip to content

Commit

Permalink
fix all misalignment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeRx committed Oct 21, 2024
1 parent 6e1a635 commit 6c2c1e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ui/components/app/snaps/snap-ui-link/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
// Fixes an issue where the link end icon would wrap
display: inline-flex;
}

.snap-ui-renderer__address + .mm-icon {
// This fixes an issue where the icon would be misaligned with the Address component
top: 0;
}
}
4 changes: 3 additions & 1 deletion ui/components/app/snaps/snap-ui-link/snap-ui-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { Display } from '../../../../helpers/constants/design-system';
import {
ButtonLink,
ButtonLinkSize,
Icon,
IconName,
IconSize,
} from '../../../component-library';
import SnapLinkWarning from '../snap-link-warning';
import useSnapNavigation from '../../../../hooks/snaps/useSnapNavigation';
Expand Down Expand Up @@ -57,9 +59,9 @@ export const SnapUILink = ({ href, children }) => {
textProps={{
display: Display.Inline,
}}
endIconName={IconName.Export}
>
{children}
<Icon name={IconName.Export} size={IconSize.Inherit} marginLeft={1} />
</ButtonLink>
</>
);
Expand Down
4 changes: 0 additions & 4 deletions ui/components/app/snaps/snap-ui-renderer/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@

&__panel {
gap: 8px;

.mm-icon--size-inherit {
top: 0;
}
}

&__text {
Expand Down

0 comments on commit 6c2c1e9

Please sign in to comment.