Skip to content

Commit

Permalink
[#912,@portaljs/components][m]: possibly fixes 'loading...' size on F…
Browse files Browse the repository at this point in the history
…latUiTable on Firefox
  • Loading branch information
demenech committed Jun 6, 2023
1 parent 5190f50 commit 95a9aa5
Show file tree
Hide file tree
Showing 156 changed files with 15 additions and 4,197 deletions.
1 change: 1 addition & 0 deletions packages/components/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'tailwindcss/tailwind.css'
import '../src/index.css'

import type { Preview } from '@storybook/react';

Expand Down
8 changes: 6 additions & 2 deletions packages/components/src/components/FlatUiTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const TableInner: React.FC<FlatUiTableProps> = ({
{ enabled: rawCsv ? true : !!csvString }
);
if (isParsing || isDownloadingCSV)
<div className="w-full">
<div className="w-full flex justify-center items-center h-[500px]">
<LoadingSpinner />
</div>;
if (parsedData)
Expand All @@ -90,5 +90,9 @@ const TableInner: React.FC<FlatUiTableProps> = ({
<Grid data={parsedData.data} />
</div>
);
return <LoadingSpinner />;
return (
<div className="w-full flex justify-center items-center h-[500px]">
<LoadingSpinner />
</div>
);
};
9 changes: 8 additions & 1 deletion packages/components/src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;

/* Temporary fix for a size issue with FlatUiTable loading indicator on Firefox */
@layer base {
svg[tw^='animate-pulse w-12'] {
max-width: 100px;
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 95a9aa5

Please sign in to comment.