Skip to content

Commit

Permalink
chore: update shortcuts display
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Jan 21, 2024
1 parent 5dab623 commit 2552a76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "slash-extension",
"displayName": "Slash",
"version": "1.0.3",
"version": "1.0.4",
"description": "An open source, self-hosted bookmarks and link sharing platform. Save and share your links very easily.",
"scripts": {
"dev": "plasmo dev",
Expand Down
4 changes: 2 additions & 2 deletions frontend/extension/src/components/ShortcutView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const ShortcutView = (props: Props) => {
<>
<div
className={classNames(
"group w-full px-3 py-2 flex flex-col justify-start items-start border rounded-lg hover:bg-gray-100 hover:shadow dark:border-zinc-800 dark:hover:bg-zinc-800"
"group w-auto px-3 py-2 flex flex-col justify-start items-start border rounded-lg hover:bg-gray-100 hover:shadow dark:border-zinc-800 dark:hover:bg-zinc-800"
)}
>
<div className="w-full flex flex-row justify-start items-center">
Expand Down Expand Up @@ -51,7 +51,7 @@ const ShortcutView = (props: Props) => {
</>
)}
</div>
<span className="hidden group-hover:block ml-1 cursor-pointer shrink-0">
<span className="ml-1 cursor-pointer shrink-0 opacity-80">
<Icon.ExternalLink className="w-4 h-auto text-gray-600" />
</span>
</button>
Expand Down
2 changes: 1 addition & 1 deletion frontend/extension/src/components/ShortcutsContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ShortcutsContainer = () => {
<span className="mx-1 text-sm">Please make sure you have signed in your instance.</span>
</a>
</div>
<div className={classNames("w-full grid grid-cols-2 gap-2")}>
<div className={classNames("w-full flex flex-row justify-start items-start flex-wrap gap-2")}>
{shortcuts.map((shortcut) => {
return <ShortcutView key={shortcut.id} shortcut={shortcut} />;
})}
Expand Down

0 comments on commit 2552a76

Please sign in to comment.