Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web): add sticky date headers for asset-date-group #7824

Merged
merged 2 commits into from Mar 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions web/src/lib/components/photos-page/asset-date-group.svelte
Expand Up @@ -127,7 +127,7 @@

<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class="mt-5 flex flex-col"
class="flex flex-col"
on:mouseenter={() => {
isMouseOverGroup = true;
assetMouseEventHandler(groupTitle, null);
Expand All @@ -138,8 +138,8 @@
}}
>
<!-- Date group title -->
<p
class="mb-2 flex h-6 place-items-center text-xs font-medium text-immich-fg dark:text-immich-dark-fg md:text-sm"
<div
class="flex z-[100] sticky top-0 pt-7 pb-5 h-6 place-items-center text-xs font-medium text-immich-fg bg-immich-bg dark:bg-immich-dark-bg dark:text-immich-dark-fg md:text-sm"
style="width: {geometry[groupIndex].containerWidth}px"
>
{#if !singleSelect && ((hoveredDateGroup == groupTitle && isMouseOverGroup) || $selectedGroup.has(groupTitle))}
Expand All @@ -160,7 +160,7 @@
<span class="truncate first-letter:capitalize" title={groupTitle}>
{groupTitle}
</span>
</p>
</div>

<!-- Image grid -->
<div
Expand Down