Skip to content

Commit

Permalink
Add small design adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
albingroen committed Feb 20, 2023
1 parent d6cc8c5 commit ae60cc8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Button = (
disabled={disabled}
className={classNames(
"font-medium rounded-md py-2 px-4 w-full text-sm relative disabled:opacity-50",
"focus:outline-none focus:ring-1",
"focus:outline-none focus-visible:ring-1",
{
primary:
"bg-gray-900 enabled:hover:bg-gray-700 text-white enabled:focus-visible:ring-white enabled:focus-visible:bg-gray-700",
Expand Down
4 changes: 2 additions & 2 deletions components/Models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export default function Models() {
<p className="label">Models</p>

{schema.models.length ? (
<ul className="w-full space-y-px">
<ul className="w-full">
{schema.models.map((model, i) => {
const isActive = query.id === String(i);

Expand Down Expand Up @@ -372,7 +372,7 @@ export default function Models() {
<p className="label">Enums</p>

{schema.enums.length ? (
<ul className="w-full space-y-px">
<ul className="w-full">
{schema.enums.map((schemaEnum, i) => (
<li key={schemaEnum.name}>
<SidebarItem
Expand Down
2 changes: 1 addition & 1 deletion components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function Sidebar({
extra,
}: SidebarProps) {
return (
<aside className="flex flex-col w-full max-w-sm h-screen bg-white border-r">
<aside className="flex flex-col w-full max-w-xs h-screen bg-white border-r">
<div className="flex-1 w-full overflow-y-auto">{children}</div>

<Stack direction="vertical" spacing="small" className="w-full p-5">
Expand Down
2 changes: 1 addition & 1 deletion components/SidebarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function SidebarItem({
href={href}
className={classNames(
"hover:bg-gray-100 px-2 py-1.5 -mx-2 rounded-md flex items-center gap-2.5 group w-full",
"focus:outline-none focus-visible:ring-1 focus-visible:ring-black focus:bg-gray-100"
"focus:outline-none focus-visible:ring-1 focus-visible:ring-black focus-visible:bg-gray-100"
)}
onClick={
onClick
Expand Down

1 comment on commit ae60cc8

@vercel
Copy link

@vercel vercel bot commented on ae60cc8 Feb 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.