• Will Chen's avatar
    Add scroll to bottom button (#1484) · 83126a7e
    Will Chen 提交于
    Based on #1425 
    
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > Adds a floating scroll-to-bottom button and refines scroll/auto-scroll
    behavior with layout tweaks to support an overlay.
    > 
    > - **Chat UI**:
    > - **Scroll-to-bottom button**: Adds floating button in `ChatPanel`
    (uses `Button` and `ArrowDown`) that appears when scrolled away and
    scrolls smoothly to the latest message.
    > - **Scroll logic**: Introduces `getDistanceFromBottom`,
    `isNearBottom`, and a `scrollAwayThreshold`; auto-scroll now triggers
    only when near the bottom; refactors `handleScroll` with `useCallback`
    and longer idle timeout.
    > - **Layout**: Wraps `MessagesList` in a `relative` container and
    renders a centered absolute button overlay; adjusts `MessagesList` root
    to `absolute inset-0` for proper overlay behavior.
    > - **Misc**: Updates effect dependencies and console log message
    related to streaming/scrolling.
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    2e1b844830ae26cfc40840b9e8216fefad112a5e. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    Co-authored-by: 's avatarMd Rakibul Islam Rocky <mdrirocky08@outlook.com>
    83126a7e
名称
最后提交
最后更新
..
__tests__ 正在载入提交数据...
app 正在载入提交数据...
atoms 正在载入提交数据...
client_logic 正在载入提交数据...
components 正在载入提交数据...
constants 正在载入提交数据...
contexts 正在载入提交数据...
db 正在载入提交数据...
hooks 正在载入提交数据...
ipc 正在载入提交数据...
lib 正在载入提交数据...
main 正在载入提交数据...
neon_admin 正在载入提交数据...
pages 正在载入提交数据...
paths 正在载入提交数据...
prompts 正在载入提交数据...
routes 正在载入提交数据...
shared 正在载入提交数据...
store 正在载入提交数据...
styles 正在载入提交数据...
supabase_admin 正在载入提交数据...
utils 正在载入提交数据...
backup_manager.ts 正在载入提交数据...
main.ts 正在载入提交数据...
preload.ts 正在载入提交数据...
renderer.tsx 正在载入提交数据...
router.ts 正在载入提交数据...