feat: add collapsible welcome and sticky tabs
Wrap the home welcome component in a collapsible container with smooth transitions. Implement scroll-based collapse and expand logic for the banner in the chat main list. Add sticky tab header styling and updated page layout for the discovery page.
This commit is contained in:
@@ -5,6 +5,25 @@
|
||||
overscroll-behavior-y: contain;
|
||||
}
|
||||
|
||||
.home-welcome-collapse {
|
||||
width: 100%;
|
||||
height: 92px;
|
||||
flex-shrink: 0;
|
||||
overflow: hidden;
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
transition:
|
||||
height 240ms ease,
|
||||
opacity 240ms ease,
|
||||
transform 240ms ease;
|
||||
}
|
||||
|
||||
.home-welcome-collapse.is-collapsed {
|
||||
height: 0;
|
||||
opacity: 0;
|
||||
transform: translateY(-8px);
|
||||
}
|
||||
|
||||
.home-hero {
|
||||
height: 136px;
|
||||
overflow: hidden;
|
||||
|
||||
Reference in New Issue
Block a user