Skip to content

Commit 7764977

Browse files
committed
minor fixes
1 parent b1f450f commit 7764977

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

app/routes/users+/$username_+/notes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function NotesRoute() {
3131
const navLinkDefaultClassName =
3232
'line-clamp-2 block rounded-l-full py-2 pl-8 pr-6 text-base lg:text-xl'
3333
return (
34-
<main className="container flex h-full min-h-[400px] pb-12">
34+
<main className="container flex h-full min-h-[400px] px-0 pb-12 md:px-8">
3535
<div className="grid w-full grid-cols-4 bg-muted pl-2 md:container md:mx-2 md:rounded-3xl md:pr-0">
3636
<div className="relative col-span-1">
3737
<div className="absolute inset-0 flex flex-col">

app/utils/misc.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ export function getDomainUrl(request: Request) {
7070
request.headers.get('X-Forwarded-Host') ??
7171
request.headers.get('host') ??
7272
new URL(request.url).host
73-
if (!host) {
74-
throw new Error('Could not determine domain URL.')
75-
}
7673
const protocol = host.includes('localhost') ? 'http' : 'https'
7774
return `${protocol}://${host}`
7875
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)