diff --git a/invokeai/frontend/web/src/features/workflowLibrary/components/WorkflowLibraryList.tsx b/invokeai/frontend/web/src/features/workflowLibrary/components/WorkflowLibraryList.tsx
index 30df51ce60..ec09e5e8dc 100644
--- a/invokeai/frontend/web/src/features/workflowLibrary/components/WorkflowLibraryList.tsx
+++ b/invokeai/frontend/web/src/features/workflowLibrary/components/WorkflowLibraryList.tsx
@@ -136,14 +136,6 @@ const WorkflowLibraryList = () => {
setPage(0);
}, []);
- if (isLoading) {
- return ;
- }
-
- if (!data || isError) {
- return ;
- }
-
return (
<>
@@ -172,7 +164,7 @@ const WorkflowLibraryList = () => {
data={ORDER_BY_DATA}
onChange={handleChangeOrderBy}
formControlProps={{
- w: '12rem',
+ w: 48,
display: 'flex',
alignItems: 'center',
gap: 2,
@@ -185,7 +177,7 @@ const WorkflowLibraryList = () => {
data={DIRECTION_DATA}
onChange={handleChangeDirection}
formControlProps={{
- w: '12rem',
+ w: 48,
display: 'flex',
alignItems: 'center',
gap: 2,
@@ -217,7 +209,11 @@ const WorkflowLibraryList = () => {
- {data.items.length ? (
+ {isLoading ? (
+
+ ) : !data || isError ? (
+
+ ) : data.items.length ? (
{data.items.map((w) => (
@@ -229,9 +225,15 @@ const WorkflowLibraryList = () => {
)}
-
-
-
+ {data && (
+
+
+
+ )}
>
);
};
diff --git a/invokeai/frontend/web/src/features/workflowLibrary/components/WorkflowLibraryListItem.tsx b/invokeai/frontend/web/src/features/workflowLibrary/components/WorkflowLibraryListItem.tsx
index e842f4aa1f..f8481ded83 100644
--- a/invokeai/frontend/web/src/features/workflowLibrary/components/WorkflowLibraryListItem.tsx
+++ b/invokeai/frontend/web/src/features/workflowLibrary/components/WorkflowLibraryListItem.tsx
@@ -29,9 +29,9 @@ const WorkflowLibraryListItem = ({ workflowDTO }: Props) => {
return (
-
-
-
+
+
+
{workflowDTO.name || t('workflows.unnamedWorkflow')}
@@ -44,7 +44,7 @@ const WorkflowLibraryListItem = ({ workflowDTO }: Props) => {
)}
-
+
{workflowDTO.description ? (
{workflowDTO.description}