mirror of
https://github.com/rmoren97/mc-manager.git
synced 2026-03-28 17:26:47 -07:00
fix dropdown menu styling
This commit is contained in:
parent
82c73b4088
commit
b076d756a3
@ -6,6 +6,7 @@ import { ArrowLeft, ShieldCheck, UserMinus, UserPlus } from 'lucide-react'
|
|||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import PageHeader from '@/components/PageHeader'
|
import PageHeader from '@/components/PageHeader'
|
||||||
import Button from '@/components/ui/Button'
|
import Button from '@/components/ui/Button'
|
||||||
|
import Select from '@/components/ui/Select'
|
||||||
import Spinner from '@/components/ui/Spinner'
|
import Spinner from '@/components/ui/Spinner'
|
||||||
import { useToast } from '@/contexts/ToastContext'
|
import { useToast } from '@/contexts/ToastContext'
|
||||||
import { useAuth } from '@/contexts/AuthContext'
|
import { useAuth } from '@/contexts/AuthContext'
|
||||||
@ -152,18 +153,13 @@ export default function ServerAdminsPage() {
|
|||||||
Add Admin
|
Add Admin
|
||||||
</h3>
|
</h3>
|
||||||
<div className="flex gap-3">
|
<div className="flex gap-3">
|
||||||
<select
|
<Select
|
||||||
value={selectedUserId}
|
value={selectedUserId}
|
||||||
onChange={(e) => setSelectedUserId(e.target.value)}
|
onChange={(e) => setSelectedUserId(e.target.value)}
|
||||||
className="flex-1 bg-white/[0.05] border border-white/[0.1] rounded-lg px-3 py-2 text-sm text-gray-200 focus:outline-none focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/30"
|
placeholder="Select a user..."
|
||||||
>
|
options={availableUsers.map(u => ({ value: u._id, label: `${u.username} (${u.email})` }))}
|
||||||
<option value="">Select a user...</option>
|
className="flex-1"
|
||||||
{availableUsers.map(u => (
|
/>
|
||||||
<option key={u._id} value={u._id}>
|
|
||||||
{u.username} ({u.email})
|
|
||||||
</option>
|
|
||||||
))}
|
|
||||||
</select>
|
|
||||||
<Button
|
<Button
|
||||||
icon={UserPlus}
|
icon={UserPlus}
|
||||||
onClick={handleAdd}
|
onClick={handleAdd}
|
||||||
|
|||||||
@ -59,6 +59,11 @@ body {
|
|||||||
color: rgba(255, 255, 255, 0.3);
|
color: rgba(255, 255, 255, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select option {
|
||||||
|
background-color: #0d0d1a;
|
||||||
|
color: #f3f4f6;
|
||||||
|
}
|
||||||
|
|
||||||
/* ─── Glass Shine (top border gradient) ───────────────────────── */
|
/* ─── Glass Shine (top border gradient) ───────────────────────── */
|
||||||
|
|
||||||
.glass-shine {
|
.glass-shine {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user