fix: resolve popover cutoff inside table by setting overflow-visible and adding debug logging for companies
Some checks failed
Staging Build / build (push) Has been cancelled
Some checks failed
Staging Build / build (push) Has been cancelled
This commit is contained in:
@@ -134,10 +134,11 @@ export function UserList({ initialUsers, companies }: UserListProps) {
|
|||||||
})
|
})
|
||||||
: filteredUsers
|
: filteredUsers
|
||||||
|
|
||||||
|
console.log('COMPANIES IN USERLIST:', companies)
|
||||||
let lastCompanyName: string | null = null
|
let lastCompanyName: string | null = null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card className="glass-dark border-white/10 shadow-2xl overflow-hidden">
|
<Card className="glass-dark border-white/10 shadow-2xl overflow-visible">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>Benutzerverwaltung</CardTitle>
|
<CardTitle>Benutzerverwaltung</CardTitle>
|
||||||
<CardDescription className="text-slate-400">
|
<CardDescription className="text-slate-400">
|
||||||
@@ -169,7 +170,7 @@ export function UserList({ initialUsers, companies }: UserListProps) {
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Table>
|
<Table containerClassName="overflow-visible">
|
||||||
<TableHeader>
|
<TableHeader>
|
||||||
<TableRow className="border-white/10 hover:bg-white/5">
|
<TableRow className="border-white/10 hover:bg-white/5">
|
||||||
<TableHead className="text-slate-200">E-Mail</TableHead>
|
<TableHead className="text-slate-200">E-Mail</TableHead>
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import * as React from "react"
|
|||||||
|
|
||||||
import { cn } from "@/lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
function Table({ className, ...props }: React.ComponentProps<"table">) {
|
function Table({ className, containerClassName, ...props }: React.ComponentProps<"table"> & { containerClassName?: string }) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
data-slot="table-container"
|
data-slot="table-container"
|
||||||
className="relative w-full overflow-x-auto"
|
className={cn("relative w-full overflow-x-auto", containerClassName)}
|
||||||
>
|
>
|
||||||
<table
|
<table
|
||||||
data-slot="table"
|
data-slot="table"
|
||||||
|
|||||||
Reference in New Issue
Block a user