tangled
alpha
login
or
join now
cosmik.network
/
semble
44
fork
atom
A social knowledge tool for researchers built on ATProto
44
fork
atom
overview
issues
13
pulls
pipelines
feat: sticky header
Pouria Delfanazari
5 months ago
4e59701f
1b9a6eeb
+4
-4
3 changed files
expand all
collapse all
unified
split
src
webapp
components
navigation
header
Header.tsx
features
profile
components
profileHeader
MinimalProfileHeader.tsx
ProfileHeader.tsx
+1
-1
src/webapp/components/navigation/header/Header.tsx
reviewed
···
8
8
9
9
export default function Header(props: Props) {
10
10
return (
11
11
-
<Box>
11
11
+
<Box pos={'sticky'} top={0} bg={'white'} style={{ zIndex: 1 }}>
12
12
<Group gap={'xs'} p={'xs'} justify="space-between">
13
13
{props.children}
14
14
<Box ml={'auto'}>
+1
-1
src/webapp/features/profile/components/profileHeader/MinimalProfileHeader.tsx
reviewed
···
8
8
9
9
export default function MinimalProfileHeader(props: Props) {
10
10
return (
11
11
-
<Container px={0} py={'xs'} size={'xl'} mx={0}>
11
11
+
<Container p={'xs'} size={'xl'} mx={0}>
12
12
<Group gap={'sm'}>
13
13
<Avatar
14
14
src={props.avatarUrl}
+2
-2
src/webapp/features/profile/components/profileHeader/ProfileHeader.tsx
reviewed
···
23
23
const profile = await getProfile(props.handle);
24
24
25
25
return (
26
26
-
<Container bg={'white'} p={'xs'} size={'xl'}>
26
26
+
<Container bg={'white'} p={0} size={'xl'}>
27
27
<MinimalProfileHeaderContainer
28
28
avatarUrl={profile.avatarUrl}
29
29
name={profile.name}
30
30
handle={profile.handle}
31
31
/>
32
32
-
<Stack gap={'sm'}>
32
32
+
<Stack gap={'sm'} p={'xs'}>
33
33
<Stack gap={'xl'}>
34
34
<Grid gutter={'md'} align={'center'} grow>
35
35
<GridCol span={'auto'}>