calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
32.07k stars 7.88k forks source link

Embed graphical bug: Empty scrollbar track rendering unpredictably when there's no overflow #15805

Open spktkl opened 3 months ago

spktkl commented 3 months ago

Issue Summary

The inline embed component has been unpredictably rendering a scrollbar track without a thumb when there is no overflow.

Steps to Reproduce

On app.cal.com:

  1. Chrome window size 1680x904 zoom 100%
  2. Go to app.cal.com/event-types
  3. Event Type > ellipsis button > 'Embed' > 'Inline Embed'
  4. The issue should be visible

In a project:

  1. Embed the Cal React component
  2. Render
  3. The issue should be visible

The scrollbar's presence/absence can be affected by:

The issue seems to be the same in monthly, weekly, and column view.

Actual Results

The scrollbar track is visible once the component renders.

Expected Results

The scrollbar track should not render if there is no overflow

Technical details

The calendar that Cal pulls from is self-hosted in a CalDAV server, and I've only tested this on my account, so latency might be relevant.

Evidence

Screenshot of app.cal.com embed screen with issue

My attempts at solving so far:

I'm not the most experienced with CSS styling or React components so maybe I'm missing something obvious, but this seems to be a deeper issue with the component's structure.

anku909 commented 3 months ago

Hi @spktk, Screenshot_2024-07-17_22_34_07 this Calendar option is not showing in my localhost but it's available in my cal.com account can you tell me how i can get this calendar option.