Skip to content

Commit

Permalink
fix: icon set details to fit the title bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Belar committed Aug 30, 2024
1 parent 5198c24 commit 0ac9cf6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
16 changes: 10 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,16 @@ function App() {
<ChevronRight size={12} />
)}
</IconButton>
<h1 className="title-m">{name}</h1>
<LinkTag href={website}>Website</LinkTag>
<LinkTag href={license.url}>
License: {license.name}
<sup>*</sup>
</LinkTag>
<div>
<h1 className="title-s">{name}</h1>
<ControlsBar>
<LinkTag href={website}>Website</LinkTag>
<LinkTag href={license.url}>
License: {license.name}
<sup>*</sup>
</LinkTag>
</ControlsBar>
</div>
</ControlsBar>
{shouldShowIcons && hasMultipleVariants && (
<Select
Expand Down
6 changes: 5 additions & 1 deletion src/LinkTag.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@

border-radius: var(--spacing-4);

padding: 0.1rem var(--spacing-8);
padding: var(--spacing-4);

text-decoration: none;
cursor: pointer;
}

.link-tag[class*="body-"] {
line-height: 1;
}

[data-theme="dark"] .link-tag {
background: var(--db-tertiary);
color: var(--df-secondary);
Expand Down

0 comments on commit 0ac9cf6

Please sign in to comment.