Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const ProjectSelectionDialog = (): ReactElement => {
<Dialog.Portal>
<ConfirmationDialog.Overlay />
<ConfirmationDialog.Content
className="max-w-9/10 w-220 h-fit max-h-200"
className="max-w-full w-220 h-fit max-h-200 gap-7.5 p-[clamp(20px,4vw,40px)]"
onOpenAutoFocus={(e) => {
e.preventDefault();
listRef.current?.focus();
Expand All @@ -48,7 +48,7 @@ export const ProjectSelectionDialog = (): ReactElement => {

{!hasProjects ? (
<ConfirmationDialog.Body className="flex flex-col gap-4">
<p className="text-subtle">{isAdmin ? noProjectsText : noProjectsAvailableText}</p>
<p className="text-subtle">{isAdmin ? noProjectsAvailableText : noProjectsText}</p>
{isAdmin && (
<Dialog.Close asChild>
<Button
Expand Down Expand Up @@ -80,17 +80,17 @@ export const ProjectSelectionDialog = (): ReactElement => {
}
}}
>
<Listbox.Content ref={listRef} className="gap-2.5 max-h-full max-w-full" aria-label={title}>
<Listbox.Content ref={listRef} className="gap-2.5 max-h-full max-w-full pb-10 items-stretch" aria-label={title}>
{flatProjects.map(({project, level}) => (
<Listbox.Item
key={project.getName()}
value={project.getName()}
className="group max-w-full"
className="group flex self-stretch w-full min-w-full"
style={{paddingInlineStart: level * 20}}
data-tone={project.getName() === activeProjectId ? 'inverse' : undefined}
>
<ProjectItem
className="w-full px-0 py-0"
className="w-full px-0 py-1.25"
label={project.getDisplayName() || project.getName()}
projectName={project.getName()}
language={project.getLanguage()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {ComponentPropsWithoutRef, ReactElement} from 'react';
export const DefaultProjectIcon = (props: ComponentPropsWithoutRef<'svg'>): ReactElement => (
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
fill="currentColor"
viewBox="-1 -1 36 36"
strokeWidth="1"
stroke="currentColor"
Expand Down