Skip to content

Commit

Permalink
Allow for mobile usable
Browse files Browse the repository at this point in the history
  • Loading branch information
lil5 committed Jul 13, 2023
1 parent d3f5103 commit bd85d6d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion frontend/src/pages/FindChain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,18 @@ export default function FindChain({ location }: { location: Location }) {
visibleChains.length ? "" : "hidden"
}`}
>
<button
key="close"
type="button"
onClick={() => {
setSelectedChains([]);
setVisibleChains([]);
setFocusedChain(null);
}}
className="absolute md:hidden top-2 right-2 rtl:right-auto rtl:left-2 btn btn-sm btn-circle btn-outline"
>
<span className="feather feather-x"></span>
</button>
{focusedChain ? (
<FocusedChain
chain={focusedChain}
Expand Down Expand Up @@ -606,7 +618,7 @@ export default function FindChain({ location }: { location: Location }) {
return (
<button
className={`p-1.5 block w-full border-b border-grey/10 last:border-none ${
selected ? "bg-white" : ""
selected ? "bg-white" : "hidden md:block"
}`}
key={chain.uid}
onClick={() => handleSetFocusedChain(chain)}
Expand Down

0 comments on commit bd85d6d

Please sign in to comment.