Skip to content

Commit 2271e06

Browse files
move stuff around
1 parent b3a603a commit 2271e06

4 files changed

Lines changed: 27 additions & 37 deletions

File tree

client/src/components/entityWatermark/EntityWatermark.tsx

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,27 @@ interface EntityWatermarkProps {
2727
}
2828
export function EntityWatermark({ className, type }: EntityWatermarkProps) {
2929
return (
30-
<div
31-
className={cx(
32-
"d-flex",
33-
"text-body-secondary",
34-
"opacity-25",
35-
className,
36-
styles.EntityWatermark
37-
)}
38-
>
39-
{type === "group" ? (
40-
<People />
41-
) : type === "user" ? (
42-
<Person />
43-
) : (
44-
<Folder />
45-
)}
30+
<div className="position-relative">
31+
<div
32+
className={cx(
33+
"d-flex",
34+
"end-0",
35+
"opacity-25",
36+
"position-absolute",
37+
"text-body-secondary",
38+
"top-0",
39+
className,
40+
styles.EntityWatermark
41+
)}
42+
>
43+
{type === "group" ? (
44+
<People />
45+
) : type === "user" ? (
46+
<Person />
47+
) : (
48+
<Folder />
49+
)}
50+
</div>
4651
</div>
4752
);
4853
}

client/src/features/ProjectPageV2/ProjectPageLayout/ProjectPageLayout.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,8 @@ export default function ProjectPageLayout({
5252
<ProjectPageHeader project={project} />
5353
</Col>
5454
<Col className={cx("d-md-block", "d-none")} md="auto">
55-
<div className="position-relative">
56-
<EntityWatermarkPlaceholder />
57-
<EntityWatermark
58-
className={cx("end-0", "position-absolute", "top-0")}
59-
type="project"
60-
/>
61-
</div>
55+
<EntityWatermarkPlaceholder />
56+
<EntityWatermark type="project" />
6257
</Col>
6358
</Row>
6459
</Col>

client/src/features/groupsV2/show/GroupPageLayout.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,8 @@ export default function GroupPageLayout({
6565
<GroupHeader group={group} slug={group.slug} />
6666
</Col>
6767
<Col className={cx("d-md-block", "d-none")} md="auto">
68-
<div className="position-relative">
69-
<EntityWatermarkPlaceholder />
70-
<EntityWatermark
71-
className={cx("end-0", "position-absolute", "top-0")}
72-
type="group"
73-
/>
74-
</div>
68+
<EntityWatermarkPlaceholder />
69+
<EntityWatermark type="group" />
7570
</Col>
7671
</Row>
7772
</Col>

client/src/features/usersV2/show/UserPageLayout.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,8 @@ export default function UserPageLayout({
7070
<UserHeader name={name ?? ""} username={user.username} />
7171
</Col>
7272
<Col className={cx("d-md-block", "d-none")} md="auto">
73-
<div className="position-relative">
74-
<EntityWatermarkPlaceholder />
75-
<EntityWatermark
76-
className={cx("end-0", "position-absolute", "top-0")}
77-
type="user"
78-
/>
79-
</div>
73+
<EntityWatermarkPlaceholder />
74+
<EntityWatermark type="user" />
8075
</Col>
8176
</Row>
8277
</Col>

0 commit comments

Comments
 (0)