other visual adjustments

This commit is contained in:
miloschwartz
2026-02-19 23:41:04 -08:00
parent 4e88f1f38a
commit 01c15afa74
3 changed files with 45 additions and 43 deletions

View File

@@ -84,7 +84,7 @@ const CredenzaContent = ({ className, children, ...props }: CredenzaProps) => {
return (
<CredenzaContent
className={cn(
"overflow-y-auto max-h-[100dvh] md:max-h-screen",
"overflow-y-auto max-h-[100dvh] md:max-h-screen md:top-[200px] md:translate-y-0",
className
)}
{...props}

View File

@@ -103,14 +103,15 @@ export default function UsersTable({ roles }: RolesTableProps) {
header: () => <span className="p-3"></span>,
cell: ({ row }) => {
const roleRow = row.original;
const isAdmin = roleRow.isAdmin;
return (
!roleRow.isAdmin && (
<div className="flex items-center gap-2 justify-end">
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="ghost"
className="h-8 w-8 p-0"
disabled={isAdmin}
>
<span className="sr-only">
{t("openMenu")}
@@ -120,6 +121,7 @@ export default function UsersTable({ roles }: RolesTableProps) {
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuItem
disabled={isAdmin}
onClick={() => {
setRoleToRemove(roleRow);
setIsDeleteModalOpen(true);
@@ -133,6 +135,7 @@ export default function UsersTable({ roles }: RolesTableProps) {
</DropdownMenu>
<Button
variant={"outline"}
disabled={isAdmin}
onClick={() => {
setEditingRole(roleRow);
setIsEditDialogOpen(true);
@@ -141,7 +144,6 @@ export default function UsersTable({ roles }: RolesTableProps) {
{t("edit")}
</Button>
</div>
)
);
}
}

View File

@@ -128,7 +128,7 @@ function CollapsibleNavItem({
disabled={isDisabled}
>
{item.icon && (
<span className="flex-shrink-0 mr-3 w-5 h-5 flex items-center justify-center">
<span className="flex-shrink-0 mr-3 w-5 h-5 flex items-center justify-center opacity-50">
{item.icon}
</span>
)}
@@ -306,7 +306,7 @@ export function SidebarNav({
{item.icon && level === 0 && (
<span
className={cn(
"flex-shrink-0 w-5 h-5 flex items-center justify-center",
"flex-shrink-0 w-5 h-5 flex items-center justify-center opacity-50",
!isCollapsed && "mr-3"
)}
>
@@ -366,7 +366,7 @@ export function SidebarNav({
)}
>
{item.icon && level === 0 && (
<span className="flex-shrink-0 mr-3 w-5 h-5 flex items-center justify-center">
<span className="flex-shrink-0 mr-3 w-5 h-5 flex items-center justify-center opacity-50">
{item.icon}
</span>
)}
@@ -423,7 +423,7 @@ export function SidebarNav({
disabled={isDisabled}
>
{item.icon && (
<span className="flex-shrink-0 w-5 h-5 flex items-center justify-center">
<span className="flex-shrink-0 w-5 h-5 flex items-center justify-center opacity-50">
{item.icon}
</span>
)}