Skip to content

Commit

Permalink
Merge pull request #9 from author-more/fix/title-bar-fit
Browse files Browse the repository at this point in the history
fix: title bar to fit icon set details
  • Loading branch information
Belar authored Aug 30, 2024
2 parents 06822ef + 0ac9cf6 commit 0dbc6e1
Show file tree
Hide file tree
Showing 2 changed files with 18 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
9 changes: 8 additions & 1 deletion src/LinkTag.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
.link-tag {
display: flex;
align-items: center;

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 0dbc6e1

Please sign in to comment.