Skip to content

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

Merged
dsmmcken merged 1 commit intomainfrom
dmckenzie_fix_input_cell_border
Feb 26, 2024
Merged

fix: keep active cell selection in first column from going offscreen#1823
dsmmcken merged 1 commit intomainfrom
dmckenzie_fix_input_cell_border

Conversation

@dsmmcken
Copy link
Copy Markdown
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
@dsmmcken dsmmcken requested a review from vbabich February 22, 2024 20:01
@codecov
Copy link
Copy Markdown

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
@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