fix: mobile view+minor changes
This commit is contained in:
@@ -34,10 +34,10 @@ export function PlatformToggle() {
|
||||
const [platform, setPlatform] = usePlatform()
|
||||
|
||||
return (
|
||||
<div className="inline-flex items-center rounded-lg border border-border/50 bg-card/30 p-0.5">
|
||||
<div className="inline-flex items-center rounded-lg border border-border/50 bg-card/30 p-0.5 shrink-0 self-start">
|
||||
<button
|
||||
onClick={() => setPlatform('linux')}
|
||||
className={`px-4 py-1.5 rounded-md text-xs font-sans font-medium transition-all ${
|
||||
className={`px-3.5 sm:px-4 py-1.5 rounded-md text-xs font-sans font-medium transition-all ${
|
||||
platform === 'linux'
|
||||
? 'bg-primary text-primary-foreground shadow-sm'
|
||||
: 'text-muted-foreground hover:text-foreground'
|
||||
@@ -47,7 +47,7 @@ export function PlatformToggle() {
|
||||
</button>
|
||||
<button
|
||||
onClick={() => setPlatform('macos')}
|
||||
className={`px-4 py-1.5 rounded-md text-xs font-sans font-medium transition-all ${
|
||||
className={`px-3.5 sm:px-4 py-1.5 rounded-md text-xs font-sans font-medium transition-all ${
|
||||
platform === 'macos'
|
||||
? 'bg-primary text-primary-foreground shadow-sm'
|
||||
: 'text-muted-foreground hover:text-foreground'
|
||||
|
||||
Reference in New Issue
Block a user