diff --git a/apps/start/src/routes/_app.$organizationId.$projectId.index.tsx b/apps/start/src/routes/_app.$organizationId.$projectId.index.tsx index a9e71c78..15a4c95a 100644 --- a/apps/start/src/routes/_app.$organizationId.$projectId.index.tsx +++ b/apps/start/src/routes/_app.$organizationId.$projectId.index.tsx @@ -32,19 +32,21 @@ function ProjectDashboard() { const { projectId } = Route.useParams(); return (
-
-
-
- - - -
-
- - +
+
+
+
+ + + +
+
+ + +
+
-
diff --git a/apps/start/src/routes/share.overview.$shareId.tsx b/apps/start/src/routes/share.overview.$shareId.tsx index 34b9f813..1d1a703e 100644 --- a/apps/start/src/routes/share.overview.$shareId.tsx +++ b/apps/start/src/routes/share.overview.$shareId.tsx @@ -104,24 +104,26 @@ function RouteComponent() {
)} -
-
-
- -
-
- +
+
+
+
+ +
+
+ +
+
- -
- - - - - - -
+
+
+ + + + + +
); diff --git a/apps/start/src/styles.css b/apps/start/src/styles.css index 401fbb2d..fac010be 100644 --- a/apps/start/src/styles.css +++ b/apps/start/src/styles.css @@ -373,4 +373,30 @@ button { .scrollarea-content:hover::-webkit-scrollbar-thumb, .scrollarea-content:active::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.4); /* darken on hover/scroll */ +} + +/* Scroll-driven animation for sticky header */ +@keyframes sticky-shadow { + 0% { + box-shadow: none; + border-bottom-color: transparent; + border-bottom-width: 1px; + background-color: transparent; + } + 100% { + box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); + border-bottom-color: var(--color-border); + border-bottom-width: 1px; + background-color: var(--color-def-100); + } +} + +.sticky-header { + position: sticky; + top: 0; + z-index: 10; + border-bottom: 1px solid transparent; + animation: sticky-shadow linear both; + animation-timeline: scroll(); + animation-range: 0 1px; } \ No newline at end of file