Skip to content

Commit

Permalink
prevent link from taking all the parent space
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeRx committed Oct 18, 2024
1 parent 3fbef32 commit 9f5c982
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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 @@ -2,6 +2,7 @@ import React, { useState } from 'react';
import PropTypes from 'prop-types';
import {
AlignItems,
BlockSize,
Display,
FlexDirection,
} from '../../../../helpers/constants/design-system';
Expand Down Expand Up @@ -54,8 +55,12 @@ export const SnapUILink = ({ href, children }) => {
onClick={handleLinkClick}
externalLink
size={ButtonLinkSize.Inherit}
display={Display.Inline}
display={Display.InlineBlock}
className="snap-ui-link"
style={{
// Prevents the link from taking up the full width of the parent.
width: 'fit-content',
}}
textProps={{
display: Display.InlineFlex,
flexDirection: FlexDirection.Row,
Expand Down

0 comments on commit 9f5c982

Please sign in to comment.