Skip to content

Commit

Permalink
VUU-47 fix layoutList styling
Browse files Browse the repository at this point in the history
  • Loading branch information
vferraro-scottlogic committed Oct 3, 2023
1 parent 731b03d commit 2eac507
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.vuuLayoutList {
align-self: stretch;
height: 100%;
overflow: hidden;
}

.vuuLayoutList-header {
Expand Down
30 changes: 13 additions & 17 deletions vuu-ui/packages/vuu-shell/src/layout-management/LayoutList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,21 @@ export const LayoutsList = (props: HTMLAttributes<HTMLDivElement>) => {
source={Object.entries(layoutsByGroup)}
ListItem={({ item }) => <>
<div className={`${classBase}-groupName`}>{item?.[0]}</div>
<List<LayoutMetadata>
height='fit-content'
source={item?.[1]}
ListItem={({ item: layout }) =>
<div
className={`${classBase}-layoutContainer`}
key={layout?.id}
onClick={() => handleLoadLayout(layout?.id)}
>
<img className={`${classBase}-screenshot`} src={layout?.screenshot} />
<div>
<div className={`${classBase}-layoutName`}>{layout?.name}</div>
<div className={`${classBase}-layoutDetails`}>
<div>{`${layout?.user}, ${layout?.date}`}</div>
</div>
{item?.[1].map(layout =>
<div
className={`${classBase}-layoutContainer`}
key={layout?.id}
onClick={() => handleLoadLayout(layout?.id)}
>
<img className={`${classBase}-screenshot`} src={layout?.screenshot} />
<div>
<div className={`${classBase}-layoutName`}>{layout?.name}</div>
<div className={`${classBase}-layoutDetails`}>
<div>{`${layout?.user}, ${layout?.date}`}</div>
</div>
</div>
}
/>
</div>
)}
</>
}
/>
Expand Down

0 comments on commit 2eac507

Please sign in to comment.