Skip to content

Commit

Permalink
responsive adjusts to generator
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoLuglio committed Oct 14, 2024
1 parent 457da53 commit 4a7f154
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/SyntaxColorList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const ColorList: React.FC<ColorListProps> = ({ title, isThemeColors }) => {
Unlock All
</Button>
</div>
<div className="grid grid-cols-1 md:grid-rows-4 md:grid-flow-col md:auto-cols-auto gap-3 w-full">
<div className="grid grid-cols-1 md:grid-rows-4 md:grid-flow-col auto-cols-fr gap-3 w-full">
{Object.entries(displayColors).map(([key, value]) => (
<div
key={key}
Expand All @@ -90,7 +90,7 @@ const ColorList: React.FC<ColorListProps> = ({ title, isThemeColors }) => {
>
{key}
</h3>
<div>
<div className="flex gap-2">
<Button
variant="ghost"
size="icon"
Expand Down
4 changes: 2 additions & 2 deletions src/components/ThemeGenerator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const ThemeGenerator = () => {
<section>
<div className="mx-auto p-4 flex flex-col gap-5">
<div className="flex flex-wrap lg:flex-nowrap gap-6">
<div className="flex flex-col items-center justify-between flex-shrink">
<div className="flex flex-col items-center justify-between w-full md:w-auto">
<div className="flex flex-col items-center flex-1 gap-6">
<ThemeControls />
<div className="">
Expand All @@ -53,7 +53,7 @@ export const ThemeGenerator = () => {
<div className="flex-1">
<ThemePreview />
</div>
<div className="flex flex-col gap-6">
<div className="flex flex-col gap-6 w-full md:w-auto">
<ColorList title="Theme Colors" isThemeColors={true} />
<AnsiColorList />
</div>
Expand Down

0 comments on commit 4a7f154

Please sign in to comment.