diff --git a/apps/web-tss/src/components/ui/layouts/AppPageLayout.tsx b/apps/web-tss/src/components/ui/layouts/AppPageLayout.tsx index dfae8061a..9267023dc 100644 --- a/apps/web-tss/src/components/ui/layouts/AppPageLayout.tsx +++ b/apps/web-tss/src/components/ui/layouts/AppPageLayout.tsx @@ -50,7 +50,6 @@ export const AppPageLayout: React.FC< {header} @@ -60,7 +59,6 @@ export const AppPageLayout: React.FC< {secondaryHeader} @@ -71,9 +69,12 @@ export const AppPageLayout: React.FC< scrollable={scrollable} id={contentContainerId} > - {header && scrollable && headerBorderVariant === 'ghost' && ( -
- )} +
{children} diff --git a/apps/web-tss/src/components/ui/layouts/AppPageLayoutHeader.tsx b/apps/web-tss/src/components/ui/layouts/AppPageLayoutHeader.tsx index a29f18c1e..fcc6840c2 100644 --- a/apps/web-tss/src/components/ui/layouts/AppPageLayoutHeader.tsx +++ b/apps/web-tss/src/components/ui/layouts/AppPageLayoutHeader.tsx @@ -10,22 +10,10 @@ const headerVariants = cva( default: 'px-4.5', list: 'px-7.5', }, - borderVariant: { - default: 'border-b', - ghost: 'border-b-0', - }, }, defaultVariants: { - borderVariant: 'default', sizeVariant: 'default', }, - compoundVariants: [ - { - borderVariant: 'ghost', - sizeVariant: 'default', - className: 'max-h-[37.5px] min-h-[37.5px]', // hack. figure out a better way to do this - }, - ], } ); @@ -35,8 +23,6 @@ export const AppPageLayoutHeader: React.FC< className?: string; } & VariantProps > -> = ({ children, className = '', sizeVariant = 'default', borderVariant = 'default' }) => { - return ( -
{children}
- ); +> = ({ children, className = '', sizeVariant = 'default' }) => { + return
{children}
; }; diff --git a/apps/web-tss/src/layouts/AssetContainer/AssetContainer.tsx b/apps/web-tss/src/layouts/AssetContainer/AssetContainer.tsx index 0facd8f59..b61381da0 100644 --- a/apps/web-tss/src/layouts/AssetContainer/AssetContainer.tsx +++ b/apps/web-tss/src/layouts/AssetContainer/AssetContainer.tsx @@ -1,7 +1,20 @@ import type React from 'react'; +import { AppPageLayout } from '@/components/ui/layouts/AppPageLayout'; +import { AppPageLayoutHeader } from '@/components/ui/layouts/AppPageLayoutHeader'; + export const AssetContainer: React.FC<{ children: React.ReactNode; -}> = ({ children }) => { - return
{children}
; + header?: React.ReactNode; +}> = ({ children, header }) => { + return ( + +
{children}
+
+ ); }; diff --git a/apps/web-tss/src/layouts/AssetContainer/MetricAssetContainer.tsx b/apps/web-tss/src/layouts/AssetContainer/MetricAssetContainer.tsx index 1cc178804..aa8df0b68 100644 --- a/apps/web-tss/src/layouts/AssetContainer/MetricAssetContainer.tsx +++ b/apps/web-tss/src/layouts/AssetContainer/MetricAssetContainer.tsx @@ -5,9 +5,5 @@ export const MetricAssetContainer: React.FC<{ metricId: string; metric_version_number: number | undefined; }> = ({ children, metricId, metric_version_number }) => { - return ( - - METRIC {children} {metricId} {metric_version_number} - - ); + return Metric ID: {metricId}
}>{children}; }; diff --git a/apps/web-tss/src/styles/buster.scss b/apps/web-tss/src/styles/buster.scss index 102bca73b..1f98dbb1c 100644 --- a/apps/web-tss/src/styles/buster.scss +++ b/apps/web-tss/src/styles/buster.scss @@ -10,21 +10,12 @@ scroll-timeline-name: --scrollShadowContainer; .scroll-header { - @apply pointer-events-none absolute top-[0px] right-0 left-0 h-[0.5px] w-full border-b border-transparent; - animation: shadowAnimation linear; - animation-range: 0px 120px; + @apply pointer-events-none top-[0px] z-10 right-0 left-0 h-[0.5px] w-full sticky; + animation-name: scrollShowAnimation; + animation-duration: 1ms; /* Firefox requires this to apply the animation */ animation-timeline: --scrollShadowContainer; + animation-range: 0px 140px; animation-fill-mode: forwards; - z-index: 1; - } - - @keyframes shadowAnimation { - from { - border-color: transparent; - } - to { - border-color: var(--color-border); - } } } @@ -49,3 +40,14 @@ scrollbar-color: color-mix(in srgb, var(--color-border) 50%, transparent) transparent; } + +@keyframes scrollShowAnimation { + from { + background-color: transparent; + min-height: 0px; + } + to { + background-color: var(--color-border); + min-height: 0.5px; + } +}