Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/components/ReadmeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -528,14 +528,14 @@ export const ReadmeModal: React.FC<ReadmeModalProps> = ({
<DialogContent
showClose={false}
aria-describedby={undefined}
className="w-[calc(100%_-_2rem)] max-w-[1130px] min-w-0 overflow-hidden p-0"
className="flex h-[calc(100vh_-_2rem)] max-h-[calc(100vh_-_2rem)] w-[calc(100vw_-_2rem)] max-w-none min-w-0 flex-col overflow-hidden p-0"
onCloseAutoFocus={(event) => {
if (!onCloseAutoFocus) return;
event.preventDefault();
onCloseAutoFocus();
}}
>
<div className="relative flex max-h-[90vh] min-w-0 max-w-full w-full flex-col overflow-hidden bg-card dark:bg-card">
<div className="relative flex min-h-0 min-w-0 max-w-full w-full flex-1 flex-col overflow-hidden bg-card dark:bg-card">
{readmeContent && !loading && (
<div className="absolute top-0 left-0 right-0 h-0.5 bg-accent dark:bg-muted z-20 rounded-t-xl overflow-hidden">
<div
Expand Down
4 changes: 2 additions & 2 deletions src/components/RepositoryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ const ReadmeModalLoadingFallback: React.FC<{
<Dialog open onOpenChange={(open) => !open && onClose()}>
<DialogContent
aria-describedby={undefined}
className="w-[calc(100%_-_2rem)] max-w-[1130px] p-6"
className="flex h-[calc(100vh_-_2rem)] max-h-[calc(100vh_-_2rem)] w-[calc(100vw_-_2rem)] max-w-none flex-col overflow-hidden p-6"
onCloseAutoFocus={(event) => {
event.preventDefault();
onCloseAutoFocus();
}}
>
<DialogTitle className="sr-only">Loading README</DialogTitle>
<div className="flex min-h-40 flex-col items-center justify-center gap-4" role="status" aria-live="polite">
<div className="flex flex-1 flex-col items-center justify-center gap-4" role="status" aria-live="polite">
<Loader2 className="h-8 w-8 animate-spin text-primary" aria-hidden="true" />
<p className="text-muted-foreground">Loading README…</p>
</div>
Expand Down
Loading