mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Browser input style improvements
This commit is contained in:
2 files changed
+5
-5
No files matched your search
@@ -56,13 +56,13 @@ export function BrowserAddressBar({
|
||||
{leftContent}
|
||||
|
||||
{/* Address bar with refresh button inside */}
|
||||
<form onSubmit={handleSubmit} className="flex-1 mx-auto px-4 max-w-2xl relative">
|
||||
<form onSubmit={handleSubmit} className="flex-1 mx-auto px-6 max-w-80 relative">
|
||||
<Input
|
||||
type="text"
|
||||
value={inputValue}
|
||||
onChange={handleInputChange}
|
||||
placeholder="Enter path (e.g., /, /about)"
|
||||
className="h-8 bg-muted/50 border-muted-foreground/20 focus:bg-background pr-9"
|
||||
className="h-7 text-xs md:text-xs bg-muted/50 border-muted-foreground/20 focus:bg-background pr-9 rounded-full"
|
||||
disabled={!onNavigate}
|
||||
/>
|
||||
{onRefresh && (
|
||||
@@ -71,10 +71,10 @@ export function BrowserAddressBar({
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
onClick={onRefresh}
|
||||
className="h-6 w-6 p-0 absolute right-5 top-1/2 -translate-y-1/2 hover:bg-transparent"
|
||||
className="size-6 absolute right-7 top-1/2 -translate-y-1/2 hover:bg-muted/50 rounded-full transition-colors group"
|
||||
title="Refresh"
|
||||
>
|
||||
<RefreshCw className="h-3.5 w-3.5 text-muted-foreground hover:text-foreground" />
|
||||
<RefreshCw className="size-3 text-muted-foreground transition-colors group-hover:text-foreground" />
|
||||
</Button>
|
||||
)}
|
||||
</form>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { cva } from "class-variance-authority"
|
||||
|
||||
export const buttonVariants = cva(
|
||||
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
||||
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
|
||||
Reference in new issue
Block a user