Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct token for preset window #604

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/src/components/ui/popover.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as PopoverPrimitive from '@radix-ui/react-popover';
import * as React from 'react';

import { cn } from '@/lib/utils';

Expand Down Expand Up @@ -28,4 +28,4 @@ const PopoverContent = React.forwardRef<
));
PopoverContent.displayName = PopoverPrimitive.Content.displayName;

export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
10 changes: 5 additions & 5 deletions app/src/routes/editor/WebviewArea/BrowserControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ function BrowserControls({
<ChevronDownIcon />
</Button>
</PopoverTrigger>
<PopoverContent className="backdrop-blur text-sm overflow-hidden bg-background/90 text-white rounded-xl w-64 border border-gray-600 p-0">
<h3 className="text-gray-400 px-4 py-4 border-b border-gray-600">
<PopoverContent className="backdrop-blur text-sm overflow-hidden bg-background/90 rounded-xl w-64 border p-0">
<h3 className="text-foreground-tertiary px-4 py-4 border-b">
Preset Dimensions
</h3>
<div className="">
<div>
{PRESETS.map((preset) => (
<button
key={preset.name}
Expand All @@ -191,8 +191,8 @@ function BrowserControls({
'hover:bg-background-active/80',
)}
>
<span className="text-white justify-self-start">{preset.name}</span>
<span className="text-gray-400 justify-self-end">{`${preset.width} x ${preset.height}`}</span>
<span className="justify-self-start">{preset.name}</span>
<span className="text-foreground-tertiary justify-self-end">{`${preset.width} x ${preset.height}`}</span>
</button>
))}
</div>
Expand Down