forked from administration/panel
fix: reorder action buttons on small screens
parent
a3e5db0886
commit
386f124fe9
|
@ -45,7 +45,7 @@ export function AccountActions({
|
||||||
const [emailDraft, setEmailDraft] = useState("");
|
const [emailDraft, setEmailDraft] = useState("");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex gap-2">
|
<div className="flex flex-col md:flex-row gap-2">
|
||||||
<AlertDialog>
|
<AlertDialog>
|
||||||
<AlertDialogTrigger asChild>
|
<AlertDialogTrigger asChild>
|
||||||
<Button className="flex-1">
|
<Button className="flex-1">
|
||||||
|
|
|
@ -35,7 +35,7 @@ export function ServerActions({ server }: { server: Server }) {
|
||||||
const { toast } = useToast();
|
const { toast } = useToast();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex gap-2">
|
<div className="flex flex-col md:flex-row gap-2">
|
||||||
{serverDraft.discoverable ? (
|
{serverDraft.discoverable ? (
|
||||||
<Button
|
<Button
|
||||||
className="flex-1"
|
className="flex-1"
|
||||||
|
|
|
@ -109,7 +109,7 @@ export function UserActions({ user, bot }: { user: User; bot?: Bot }) {
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<div className="flex gap-2">
|
<div className="flex flex-col md:flex-row gap-2">
|
||||||
{bot ? (
|
{bot ? (
|
||||||
botDraft!.discoverable ? (
|
botDraft!.discoverable ? (
|
||||||
<Button
|
<Button
|
||||||
|
|
Loading…
Reference in New Issue