Merge branch 'main' of https://github.com/OpenCut-app/OpenCut
This commit is contained in:
@ -137,7 +137,7 @@ export default function LoginPage() {
|
|||||||
return (
|
return (
|
||||||
<div className="flex h-screen items-center justify-center relative">
|
<div className="flex h-screen items-center justify-center relative">
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="text"
|
||||||
onClick={() => router.back()}
|
onClick={() => router.back()}
|
||||||
className="absolute top-6 left-6"
|
className="absolute top-6 left-6"
|
||||||
>
|
>
|
||||||
|
@ -159,7 +159,7 @@ export default function SignUpPage() {
|
|||||||
return (
|
return (
|
||||||
<div className="flex h-screen items-center justify-center relative">
|
<div className="flex h-screen items-center justify-center relative">
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="text"
|
||||||
onClick={() => router.back()}
|
onClick={() => router.back()}
|
||||||
className="absolute top-6 left-6"
|
className="absolute top-6 left-6"
|
||||||
>
|
>
|
||||||
|
@ -313,7 +313,7 @@ export function AuthForm({ mode }: AuthFormProps) {
|
|||||||
return (
|
return (
|
||||||
<div className="flex h-screen items-center justify-center relative">
|
<div className="flex h-screen items-center justify-center relative">
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="text"
|
||||||
onClick={() => router.back()}
|
onClick={() => router.back()}
|
||||||
className="absolute top-6 left-6"
|
className="absolute top-6 left-6"
|
||||||
>
|
>
|
||||||
|
@ -149,7 +149,7 @@ export function PreviewPanel() {
|
|||||||
{/* Debug Toggle - Only show in development */}
|
{/* Debug Toggle - Only show in development */}
|
||||||
{SHOW_DEBUG_INFO && (
|
{SHOW_DEBUG_INFO && (
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="text"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => setShowDebug(!showDebug)}
|
onClick={() => setShowDebug(!showDebug)}
|
||||||
className="text-xs"
|
className="text-xs"
|
||||||
|
@ -498,7 +498,7 @@ export function Timeline() {
|
|||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="text"
|
||||||
size="icon"
|
size="icon"
|
||||||
onClick={toggle}
|
onClick={toggle}
|
||||||
className="mr-2"
|
className="mr-2"
|
||||||
@ -549,7 +549,7 @@ export function Timeline() {
|
|||||||
|
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<Button variant="ghost" size="icon" onClick={handleSplitSelected}>
|
<Button variant="text" size="icon" onClick={handleSplitSelected}>
|
||||||
<Scissors className="h-4 w-4" />
|
<Scissors className="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
@ -558,7 +558,7 @@ export function Timeline() {
|
|||||||
|
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<Button variant="ghost" size="icon">
|
<Button variant="text" size="icon">
|
||||||
<ArrowLeftToLine className="h-4 w-4" />
|
<ArrowLeftToLine className="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
@ -567,7 +567,7 @@ export function Timeline() {
|
|||||||
|
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<Button variant="ghost" size="icon">
|
<Button variant="text" size="icon">
|
||||||
<ArrowRightToLine className="h-4 w-4" />
|
<ArrowRightToLine className="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
@ -576,7 +576,7 @@ export function Timeline() {
|
|||||||
|
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<Button variant="ghost" size="icon">
|
<Button variant="text" size="icon">
|
||||||
<SplitSquareHorizontal className="h-4 w-4" />
|
<SplitSquareHorizontal className="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
@ -585,7 +585,7 @@ export function Timeline() {
|
|||||||
|
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<Button variant="ghost" size="icon" onClick={handleDuplicateSelected}>
|
<Button variant="text" size="icon" onClick={handleDuplicateSelected}>
|
||||||
<Copy className="h-4 w-4" />
|
<Copy className="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
@ -594,7 +594,7 @@ export function Timeline() {
|
|||||||
|
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<Button variant="ghost" size="icon" onClick={handleFreezeSelected}>
|
<Button variant="text" size="icon" onClick={handleFreezeSelected}>
|
||||||
<Snowflake className="h-4 w-4" />
|
<Snowflake className="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
@ -603,7 +603,7 @@ export function Timeline() {
|
|||||||
|
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<Button variant="ghost" size="icon" onClick={handleDeleteSelected}>
|
<Button variant="text" size="icon" onClick={handleDeleteSelected}>
|
||||||
<Trash2 className="h-4 w-4" />
|
<Trash2 className="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
@ -1625,7 +1625,7 @@ function TimelineTrackContent({
|
|||||||
{/* Clip options menu */}
|
{/* Clip options menu */}
|
||||||
<div className="absolute top-1 right-1 z-10">
|
<div className="absolute top-1 right-1 z-10">
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="text"
|
||||||
size="icon"
|
size="icon"
|
||||||
className="opacity-0 group-hover:opacity-100 transition-opacity"
|
className="opacity-0 group-hover:opacity-100 transition-opacity"
|
||||||
onClick={() => setClipMenuOpen(clip.id)}
|
onClick={() => setClipMenuOpen(clip.id)}
|
||||||
|
@ -38,7 +38,7 @@ export function Header() {
|
|||||||
<nav className="flex items-center">
|
<nav className="flex items-center">
|
||||||
<Link href="https://github.com/OpenCut-app/OpenCut" target="_blank">
|
<Link href="https://github.com/OpenCut-app/OpenCut" target="_blank">
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="text"
|
||||||
className="flex items-center text-sm text-muted-foreground hover:text-foreground"
|
className="flex items-center text-sm text-muted-foreground hover:text-foreground"
|
||||||
>
|
>
|
||||||
<span className="hidden sm:inline">GitHub</span>
|
<span className="hidden sm:inline">GitHub</span>
|
||||||
|
@ -17,7 +17,7 @@ const buttonVariants = cva(
|
|||||||
"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
||||||
secondary:
|
secondary:
|
||||||
"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
||||||
ghost: "hover:bg-accent hover:text-accent-foreground",
|
text: "bg-transparent p-0 rounded-none hover:text-muted-foreground", // Instead of ghost (matches app better)
|
||||||
link: "text-primary underline-offset-4 hover:underline",
|
link: "text-primary underline-offset-4 hover:underline",
|
||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
|
@ -43,7 +43,7 @@ function Calendar({
|
|||||||
: "[&:has([aria-selected])]:rounded-md"
|
: "[&:has([aria-selected])]:rounded-md"
|
||||||
),
|
),
|
||||||
day: cn(
|
day: cn(
|
||||||
buttonVariants({ variant: "ghost" }),
|
buttonVariants({ variant: "text" }),
|
||||||
"h-8 w-8 p-0 font-normal aria-selected:opacity-100"
|
"h-8 w-8 p-0 font-normal aria-selected:opacity-100"
|
||||||
),
|
),
|
||||||
day_range_start: "day-range-start",
|
day_range_start: "day-range-start",
|
||||||
|
@ -41,7 +41,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|||||||
{showPasswordToggle && (
|
{showPasswordToggle && (
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
variant="ghost"
|
variant="text"
|
||||||
size="icon"
|
size="icon"
|
||||||
onClick={() => onShowPasswordChange?.(!showPassword)}
|
onClick={() => onShowPasswordChange?.(!showPassword)}
|
||||||
className="absolute right-0 top-0 h-full px-3 text-muted-foreground hover:text-foreground"
|
className="absolute right-0 top-0 h-full px-3 text-muted-foreground hover:text-foreground"
|
||||||
|
@ -49,7 +49,7 @@ const PaginationLink = ({
|
|||||||
aria-current={isActive ? "page" : undefined}
|
aria-current={isActive ? "page" : undefined}
|
||||||
className={cn(
|
className={cn(
|
||||||
buttonVariants({
|
buttonVariants({
|
||||||
variant: isActive ? "outline" : "ghost",
|
variant: isActive ? "outline" : "text",
|
||||||
size,
|
size,
|
||||||
}),
|
}),
|
||||||
className
|
className
|
||||||
|
@ -269,7 +269,7 @@ const SidebarTrigger = React.forwardRef<
|
|||||||
<Button
|
<Button
|
||||||
ref={ref}
|
ref={ref}
|
||||||
data-sidebar="trigger"
|
data-sidebar="trigger"
|
||||||
variant="ghost"
|
variant="text"
|
||||||
size="icon"
|
size="icon"
|
||||||
className={cn("h-8 w-8", className)}
|
className={cn("h-8 w-8", className)}
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
|
Reference in New Issue
Block a user