Skip to content

Commit fd4411d

Browse files
ximingclaude
andcommitted
fix(web): ensure "View All" button stays visible in notification dropdown
Make footer sticky and reduce scrollable area height Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent fed9d1a commit fd4411d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/components/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export const Layout = view(({ children }: LayoutProps) => {
239239
</span>
240240
)}
241241
</div>
242-
<div className="overflow-y-auto max-h-80">
242+
<div className="overflow-y-auto max-h-[calc(100%-120px)]">
243243
{notificationService.notifications.length === 0 ? (
244244
<p className="px-4 py-6 text-sm text-gray-500 dark:text-gray-400 text-center">
245245
暂无通知
@@ -286,7 +286,7 @@ export const Layout = view(({ children }: LayoutProps) => {
286286
))
287287
)}
288288
</div>
289-
<div className="px-4 py-3 border-t border-gray-200 dark:border-dark-700">
289+
<div className="px-4 py-3 border-t border-gray-200 dark:border-dark-700 sticky bottom-0 bg-white dark:bg-dark-800">
290290
<button
291291
onClick={() => {
292292
setIsNotificationOpen(false);

0 commit comments

Comments
 (0)