Skip to content

Commit

Permalink
Improve css based on design
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldevelops committed Oct 27, 2024
1 parent f77fc91 commit 231cab6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions packages/app/src/components/ApiTree/ApiTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,16 @@ export default function ApiTree(props: {
fitView
onViewportChange={updateZoom}
>
<div className="absolute bottom-4 inset-x-4 z-10 flex justify-around">
<div className="flex gap-5 items-center">
<div className="bg-background-light dark:bg-background-dark flex gap-4 p-2 rounded-xl">
<div className="absolute bottom-6 inset-x-4 z-10 flex justify-around">
<div className="flex gap-3 items-center">
<div className="bg-background-light dark:bg-background-dark flex gap-4 pt-2 pb-1 px-3 rounded-lg">
<Button
size="1"
variant="ghost"
highContrast
disabled={props.busy}
onClick={props.onSync}
className="rounded-md"
>
{props.isOutOfSynced ? (
<svg
Expand Down Expand Up @@ -319,13 +320,14 @@ export default function ApiTree(props: {
<Button
color="pink"
variant="solid"
size="2"
size="3"
onClick={props.onSplit}
disabled={props.busy || props.isOutOfSynced}
className={'max-h-9 px-2 py-0 rounded-lg'}

Check failure on line 326 in packages/app/src/components/ApiTree/ApiTree.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `'max-h-9·px-2·py-0·rounded-lg'` with `"max-h-9·px-2·py-0·rounded-lg"`
>
<svg
width="20"
height="20"
width="18"
height="18"
viewBox="0 0 20 20"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
Expand Down
13 changes: 7 additions & 6 deletions packages/app/src/layout/default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,18 @@ export default function DefaultLayout({
</div>
<div className="flex-grow px-5">
<div className="flex gap-3">
<div className="flex flex-col justify-between bg-secondaryBackground-light dark:bg-secondaryBackground-dark rounded-3xl p-2">
<div className="flex flex-col justify-between bg-secondaryBackground-light dark:bg-secondaryBackground-dark rounded-3xl p-2 pb-5">
{/* This div forces the theme buttons to the bottom */}
<div />
<div className="flex flex-col gap-2 border border-secondarySurface-light dark:border-secondarySurface-dark px-4 py-3 rounded-xl">
<div className="flex flex-col space-y-2 border border-secondarySurface-light dark:border-secondarySurface-dark px-3 pt-2 pb-1 rounded-lg">
<Button
variant="ghost"
size="1"
onClick={() => themeContext.changeTheme("light")}
className={
className={`p-2.5 rounded-md ${
themeContext.theme === "light"
? "bg-secondarySurface-light"
: ""
: ""}`

Check failure on line 51 in packages/app/src/layout/default.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `}``
}

Check failure on line 52 in packages/app/src/layout/default.tsx

View workflow job for this annotation

GitHub Actions / lint

Insert `}``
>
<svg
Expand All @@ -70,10 +71,10 @@ export default function DefaultLayout({
variant="ghost"
size="1"
onClick={() => themeContext.changeTheme("dark")}
className={
className={`p-2.5 rounded-md ${
themeContext.theme === "dark"
? "bg-secondarySurface-dark"
: ""
: ""}`

Check failure on line 77 in packages/app/src/layout/default.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `}``
}

Check failure on line 78 in packages/app/src/layout/default.tsx

View workflow job for this annotation

GitHub Actions / lint

Insert `}``
>
<svg
Expand Down

0 comments on commit 231cab6

Please sign in to comment.