File tree Expand file tree Collapse file tree
components/entityWatermark
ProjectPageV2/ProjectPageLayout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,22 +27,27 @@ interface EntityWatermarkProps {
2727}
2828export 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}
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments