Skip to content

Commit

Permalink
Merge pull request #6 from sourabpramanik/fix/ui_ux
Browse files Browse the repository at this point in the history
Improve UI/UX
  • Loading branch information
sourabpramanik authored Jul 24, 2024
2 parents 784bf71 + 5ca7537 commit 56922d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/core/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export function generateAccountsCollection(
},
access: {
read: () => true,
create: () => true,
update: () => true,
delete: () => true,
create: () => false,
update: () => false,
delete: () => false,
},
fields: [
{
Expand Down
3 changes: 2 additions & 1 deletion src/core/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export async function AuthError(
): Promise<Response> {
const url = new URL(req.url as string)
url.pathname = path
url.search = encodeURIComponent(message)
url.search = ''
url.searchParams.set('error', encodeURIComponent(message))

return Response.redirect(url.toString())
}
4 changes: 2 additions & 2 deletions src/core/ui/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
align-items: center;
}
.authSeparatorAfter{
margin-bottom: 1.2em;
margin-bottom: 0.3em;
}
.authSeparatorBefore{
margin-top: 1.2em;
margin-top: 0.3em;
}
.authSeparator{
display: flex;
Expand Down

0 comments on commit 56922d8

Please sign in to comment.