Skip to content

Commit

Permalink
small fixes to how icons are displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
DonKoko committed May 2, 2024
1 parent 6755a7f commit c70f44c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app/components/icons/library.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ export function ItemsIcon(props: SVGProps<SVGSVGElement>) {
export function SettingsIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg
width={22}
height={22}
width="100%"
height="100%"
viewBox="0 0 22 22"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
Expand Down
10 changes: 7 additions & 3 deletions app/components/layout/sidebar/menu-items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ const MenuItems = ({ fetcher }: { fetcher: FetcherWithComponents<any> }) => {
onClick={toggleMobileNav}
title={item.label}
>
<i className="icon pl-[2px] text-gray-500">{item.icon}</i>
<i className="icon inline-flex pl-[2px] text-gray-500">
{item.icon}
</i>
<span className="text whitespace-nowrap transition duration-200 ease-linear">
{item.label}
</span>
Expand Down Expand Up @@ -145,7 +147,9 @@ const MenuItems = ({ fetcher }: { fetcher: FetcherWithComponents<any> }) => {
onClick={toggleMobileNav}
title={item.label}
>
<i className="icon pl-[2px] text-gray-500">{item.icon}</i>
<i className="icon inline-flex pl-[2px] text-gray-500">
{item.icon}
</i>
<span className="text whitespace-nowrap transition duration-200 ease-linear">
{item.label}
</span>
Expand All @@ -169,7 +173,7 @@ const MenuItems = ({ fetcher }: { fetcher: FetcherWithComponents<any> }) => {
workspaceSwitching ? "pointer-events-none" : ""
)}
>
<i className="icon pl-[2px] text-gray-500">
<i className="icon inline-flex pl-[2px] text-gray-500">
<Icon icon="switch" />
</i>
<span className="text whitespace-nowrap transition duration-200 ease-linear">
Expand Down
1 change: 1 addition & 0 deletions app/routes/_layout+/locations.$locationId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ export default function LocationPage() {
to="add-assets"
variant="primary"
icon="plus"
className="whitespace-nowrap"
>
Manage assets
</Button>
Expand Down

0 comments on commit c70f44c

Please sign in to comment.