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

fix: keep active cell selection in first column from going offscreen #1823

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

dsmmcken
Copy link
Contributor

@dsmmcken dsmmcken commented Feb 22, 2024

  • change cell input to not go off edge
  • makes activeCellSelectionBorderWidth a theme variable, so it can be shared with js and css
  • change canvas active cell outline to only stick to edge if at left edge of screen, not in any column
  • re-style active cell input to match latest input variables
  • change outline of input to use selection border color

active cell input in the first column fully onscreen, before:
image

after:
image

cell selected but not active, and partially scrolled offscreen, before:
image

after:
image

- change cell input to not go off edge
- makes activeCellSelectionBorderWidth a theme variable, so it can be shared with js and css
- change canvas active cell outline to only stick to edge if at left edge of screen, not in any column
- re-style active cell input to match latest input variables
- change outline of input to use selection border color
Copy link

codecov bot commented Feb 22, 2024

Codecov Report

Attention: Patch coverage is 30.76923% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 46.11%. Comparing base (677e4c5) to head (9040546).

Files Patch % Lines
packages/grid/src/GridRenderer.ts 0.00% 8 Missing ⚠️
packages/grid/src/Grid.tsx 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1823   +/-   ##
=======================================
  Coverage   46.11%   46.11%           
=======================================
  Files         628      628           
  Lines       37822    37826    +4     
  Branches     9529     9532    +3     
=======================================
+ Hits        17440    17443    +3     
- Misses      20328    20329    +1     
  Partials       54       54           
Flag Coverage Δ
unit 46.11% <30.76%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dsmmcken dsmmcken merged commit 69e8cdd into main Feb 26, 2024
6 checks passed
@dsmmcken dsmmcken deleted the dmckenzie_fix_input_cell_border branch February 26, 2024 14:58
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants