Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

fix(svelte): Fix and cleanup compare page#63928

Merged
fkling merged 2 commits into
mainfrom
fkling/sk/compare-page-fix
Jul 19, 2024
Merged

fix(svelte): Fix and cleanup compare page#63928
fkling merged 2 commits into
mainfrom
fkling/sk/compare-page-fix

Conversation

@fkling

@fkling fkling commented Jul 18, 2024

Copy link
Copy Markdown
Contributor

I just noticed that the revision pickers on the compare page don't work. That's because I made a last minute change to rename the parameter but forgot to acutally update the parameter when constructing the URL.

This also makes two additional changes:

  • Remove {@debug ...} expression that was accidentally left in (I feel like Svelte should remove this in prod builds).
  • Adds a display prop to button group, and the rev picker, which works the same as in Button. Setting width: 100% as done previously causes wrapping on the compare page. I don't think inline elements should be set to 100% width. But without it the button doesn't stretch in the sidebar. This new prop allows the caller to influence this behavior.
Before After
2024-07-19_00-59 2024-07-19_01-05

Test plan

Tested the compare page and verified that the revision picker stretches in the sidebar.

I just noticed that the revision pickers on the compare page don't work.
That's because I made a last minute change to rename the parameter but
forgot to acutally update the parameter when constructing the URL.

This also makes two additional changes:
- Remove `{@debug ...}` expression that was accidentally left in (I feel
  like Svelte should remove this in prod builds).
- Adds a `display` prop to button group, and the rev picker, which works
  the same as in `Button`. Setting `width: 100%` as done previously
  causes wrapping on the compare page. I don't think inline elements
  should be set to 100% width. But without it the button doesn't stretch
  in the sidebar.
  This new prop allows the caller to influence this behavior.
@cla-bot cla-bot Bot added the cla-signed label Jul 18, 2024
@fkling fkling self-assigned this Jul 18, 2024
@fkling fkling enabled auto-merge (squash) July 18, 2024 23:07
@fkling fkling force-pushed the fkling/sk/compare-page-fix branch from 61fdb4c to 69a4d80 Compare July 19, 2024 05:35
@fkling fkling merged commit 0bf40cd into main Jul 19, 2024
@fkling fkling deleted the fkling/sk/compare-page-fix branch July 19, 2024 05:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants