From 3a44c31e8768f3525a7532af1c1cfdfeecd86cef Mon Sep 17 00:00:00 2001 From: tomokazu tantaka Date: Wed, 2 Oct 2024 15:57:48 +0900 Subject: [PATCH] forgot the project name --- .../Recycle/Project/ProjectGridViewItem.tsx | 21 ++++++++++++++++ .../Recycle/Project/ProjectListViewItem.tsx | 24 +++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/web/src/beta/features/Dashboard/ContentsContainer/Recycle/Project/ProjectGridViewItem.tsx b/web/src/beta/features/Dashboard/ContentsContainer/Recycle/Project/ProjectGridViewItem.tsx index b5ddc7c76..456d3c3fd 100644 --- a/web/src/beta/features/Dashboard/ContentsContainer/Recycle/Project/ProjectGridViewItem.tsx +++ b/web/src/beta/features/Dashboard/ContentsContainer/Recycle/Project/ProjectGridViewItem.tsx @@ -33,6 +33,9 @@ const ProjectGridViewItem: FC = ({ /> {hasMapOrStoryPublished && } + + {project.name} + ({ borderRadius: "50%", background: theme.publish.main })); + +const CardTitleWrapper = styled("div")(() => ({ + flex: 1 +})); + +const CardTitle = styled("div")(({ theme }) => ({ + flex: "1", + padding: `0 ${theme.spacing.smallest + 1}px`, + color: theme.content.main, + fontSize: theme.fonts.sizes.body, + fontWeight: theme.fonts.weight.regular, + display: "-webkit-box", + WebkitBoxOrient: "vertical", + WebkitLineClamp: 1, + overflow: "hidden", + textOverflow: "ellipsis", + cursor: "pointer" +})); diff --git a/web/src/beta/features/Dashboard/ContentsContainer/Recycle/Project/ProjectListViewItem.tsx b/web/src/beta/features/Dashboard/ContentsContainer/Recycle/Project/ProjectListViewItem.tsx index c58a5f61b..4c5492ec5 100644 --- a/web/src/beta/features/Dashboard/ContentsContainer/Recycle/Project/ProjectListViewItem.tsx +++ b/web/src/beta/features/Dashboard/ContentsContainer/Recycle/Project/ProjectListViewItem.tsx @@ -45,6 +45,9 @@ const ProjectListViewItem: FC = ({ + + {project.name} + {UpdatedAt} @@ -114,3 +117,24 @@ const ActionCol = styled("div")(() => ({ flex: "0 0 10%", flexShrink: 0 })); + +const ProjectNameCol = styled("div")(({ theme }) => ({ + display: "flex", + alignItems: "center", + gap: theme.spacing.smallest, + flex: 1, + flexShrink: 0 +})); + +const TitleWrapper = styled("div")(({ theme }) => ({ + padding: `0 ${theme.spacing.smallest + 1}px`, + color: theme.content.main, + cursor: "pointer", + fontSize: theme.fonts.sizes.body, + fontWeight: theme.fonts.weight.regular, + display: "-webkit-box", + WebkitBoxOrient: "vertical", + WebkitLineClamp: 1, + overflow: "hidden", + textOverflow: "ellipsis" +}));