diff --git a/src/components/backlinks.tsx b/src/components/backlinks.tsx index a767852..c39453d 100644 --- a/src/components/backlinks.tsx +++ b/src/components/backlinks.tsx @@ -46,7 +46,7 @@ const BacklinkRecords = (props: BacklinksProps & { cursor?: string }) => { }); return ( - Loading…

}> + Loading…

}> {({ did, collection, rkey }) => { const timestamp = @@ -91,7 +91,7 @@ const BacklinkRecords = (props: BacklinksProps & { cursor?: string }) => {
diff --git a/src/components/button.tsx b/src/components/button.tsx index 6bdf2f0..8c7986e 100644 --- a/src/components/button.tsx +++ b/src/components/button.tsx @@ -6,6 +6,7 @@ export interface ButtonProps { class?: string; classList?: Record; onClick?: JSX.EventHandlerUnion; + ontouchstart?: (e: TouchEvent) => void; children?: JSX.Element; } @@ -16,10 +17,11 @@ export const Button = (props: ButtonProps) => { disabled={props.disabled ?? false} class={ props.class ?? - "dark:hover:bg-dark-200 dark:shadow-dark-700 dark:active:bg-dark-100 box-border flex h-7 items-center gap-1 rounded-lg border-[0.5px] border-neutral-300 bg-neutral-50 px-2 py-1.5 text-xs shadow-xs select-none hover:bg-neutral-100 active:bg-neutral-200 dark:border-neutral-700 dark:bg-neutral-800" + "dark:bg-dark-300 dark:hover:bg-dark-200 dark:active:bg-dark-100 flex items-center gap-1 rounded-md border border-neutral-300 bg-neutral-50 px-2.5 py-1.5 text-xs text-neutral-700 transition-colors select-none hover:bg-neutral-100 active:bg-neutral-200 dark:border-neutral-700 dark:text-neutral-300" } classList={props.classList} onClick={props.onClick} + ontouchstart={props.ontouchstart} > {props.children} diff --git a/src/components/create/confirm-submit.tsx b/src/components/create/confirm-submit.tsx index dbde4bc..68012c5 100644 --- a/src/components/create/confirm-submit.tsx +++ b/src/components/create/confirm-submit.tsx @@ -84,7 +84,9 @@ export const ConfirmSubmit = (props: { diff --git a/src/components/create/file-upload.tsx b/src/components/create/file-upload.tsx index 6322011..ee82b2e 100644 --- a/src/components/create/file-upload.tsx +++ b/src/components/create/file-upload.tsx @@ -90,7 +90,9 @@ export const FileUpload = (props: { diff --git a/src/components/create/handle-input.tsx b/src/components/create/handle-input.tsx index 1c82cd8..6a6d44b 100644 --- a/src/components/create/handle-input.tsx +++ b/src/components/create/handle-input.tsx @@ -75,7 +75,9 @@ export const HandleInput = (props: { onClose: () => void }) => { diff --git a/src/components/create/index.tsx b/src/components/create/index.tsx index dbefedc..6b0c545 100644 --- a/src/components/create/index.tsx +++ b/src/components/create/index.tsx @@ -347,13 +347,10 @@ export const RecordEditor = (props: {
- +
{ diff --git a/src/components/search.tsx b/src/components/search.tsx index 6cad5f7..18cae19 100644 --- a/src/components/search.tsx +++ b/src/components/search.tsx @@ -14,6 +14,7 @@ import { isTouchDevice } from "../layout"; import { resolveLexiconAuthority, resolveLexiconAuthorityDirect } from "../utils/api"; import { appHandleLink, appList, AppUrl } from "../utils/app-urls"; import { createDebouncedValue } from "../utils/hooks/debounced"; +import { Button } from "./button"; import { Modal } from "./modal"; type RecentSearch = { @@ -95,10 +96,7 @@ export const SearchButton = () => { }; return ( - + ); }; diff --git a/src/components/text-input.tsx b/src/components/text-input.tsx index 65baaca..0a577cc 100644 --- a/src/components/text-input.tsx +++ b/src/components/text-input.tsx @@ -25,7 +25,7 @@ export const TextInput = (props: TextInputProps) => { disabled={props.disabled} required={props.required} class={ - "dark:bg-dark-100 rounded-lg bg-white px-2 py-1 outline-1 outline-neutral-200 select-none placeholder:text-sm focus:outline-[1.5px] focus:outline-neutral-600 dark:outline-neutral-600 dark:focus:outline-neutral-400 " + + "dark:bg-dark-100 rounded-md bg-white px-2 py-1 outline-1 outline-neutral-200 select-none placeholder:text-sm focus:outline-[1.5px] focus:outline-neutral-600 dark:outline-neutral-600 dark:focus:outline-neutral-400 " + props.class } onInput={props.onInput} diff --git a/src/views/blob.tsx b/src/views/blob.tsx index 91aee40..fc7ae0a 100644 --- a/src/views/blob.tsx +++ b/src/views/blob.tsx @@ -50,11 +50,19 @@ const BlobView = (props: { pds: string; repo: string }) => {

{blobs()?.length} blob{(blobs()?.length ?? 0 > 1) ? "s" : ""}

- - - - - + +
diff --git a/src/views/car/shared.tsx b/src/views/car/shared.tsx index c6d47fe..f3cbcf5 100644 --- a/src/views/car/shared.tsx +++ b/src/views/car/shared.tsx @@ -123,7 +123,7 @@ export const WelcomeView = (props: {

or

-
-
+
diff --git a/src/views/home.tsx b/src/views/home.tsx index 5c0e9b2..24ff687 100644 --- a/src/views/home.tsx +++ b/src/views/home.tsx @@ -1,6 +1,7 @@ import { A } from "@solidjs/router"; import { For, JSX } from "solid-js"; import { setOpenManager } from "../auth/state"; +import { Button } from "../components/button"; import { SearchButton } from "../components/search"; type ProfileData = { @@ -110,14 +111,10 @@ export const Home = () => { to find any account
- + to manage records
diff --git a/src/views/labels.tsx b/src/views/labels.tsx index c7c9011..4f6f279 100644 --- a/src/views/labels.tsx +++ b/src/views/labels.tsx @@ -277,11 +277,13 @@ export const LabelView = () => { -
- - + + diff --git a/src/views/record.tsx b/src/views/record.tsx index ad4f7b3..20ce753 100644 --- a/src/views/record.tsx +++ b/src/views/record.tsx @@ -428,7 +428,9 @@ export const RecordView = () => { diff --git a/src/views/stream/index.tsx b/src/views/stream/index.tsx index 82b1b58..d6c2b31 100644 --- a/src/views/stream/index.tsx +++ b/src/views/stream/index.tsx @@ -414,28 +414,24 @@ export const StreamView = () => { showAllEvents={searchParams.allEvents === "on"} />
- - +