Skip to content

Commit

Permalink
Align SVG icons vertically and prevent shrinking (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbazant authored Oct 1, 2024
1 parent 87428c7 commit 7ad385f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/entry/EntryOverview.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const hasSeasonality = (locationData) =>
)
// Wraps description, last updated text, and review and report buttons
const Description = styled.section`
white-space: pre-line;
word-break: normal;
overflow-wrap: anywhere;
color: ${({ theme }) => theme.secondaryText};
Expand Down
5 changes: 5 additions & 0 deletions src/components/ui/IconBesideText.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export default styled.div`
margin: 0 0 0 4px;
}
svg {
flex-shrink: 0;
align-self: center;
}
${($props) =>
$props.onClick &&
`
Expand Down

0 comments on commit 7ad385f

Please sign in to comment.