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

[chore] hide cursor and bracket match in read-only code host config#49682

Merged
kopancek merged 3 commits into
mainfrom
milan/ronly_code_host_config
Mar 20, 2023
Merged

[chore] hide cursor and bracket match in read-only code host config#49682
kopancek merged 3 commits into
mainfrom
milan/ronly_code_host_config

Conversation

@kopancek

@kopancek kopancek commented Mar 20, 2023

Copy link
Copy Markdown
Contributor

Video

https://www.loom.com/share/65d920b3a1c54ae8b17d5eb8bc38a9c9

Test plan

CSS change only. Tested locally, works as shown on the video above.

App preview:

Check out the client app preview documentation to learn more.

@kopancek kopancek requested a review from a team March 20, 2023 12:48
@kopancek kopancek self-assigned this Mar 20, 2023
@cla-bot cla-bot Bot added the cla-signed label Mar 20, 2023
@sg-e2e-regression-test-bob

sg-e2e-regression-test-bob commented Mar 20, 2023

Copy link
Copy Markdown

Bundle size report 📦

Initial size Total size Async size Modules
0.00% (0.00 kb) 0.00% (+0.36 kb) 0.00% (+0.36 kb) 0.00% (0)

Look at the Statoscope report for a full comparison between the commits d31c49b and 5875e18 or learn more.

Open explanation
  • Initial size is the size of the initial bundle (the one that is loaded when you open the page)
  • Total size is the size of the initial bundle + all the async loaded chunks
  • Async size is the size of all the async loaded chunks
  • Modules is the number of modules in the initial bundle

@mrnugget mrnugget left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OMG! Thank you so much!!

@cla-bot cla-bot Bot added the cla-signed label Mar 20, 2023
@kopancek kopancek enabled auto-merge (squash) March 20, 2023 13:45
@kopancek kopancek merged commit 6cef2d4 into main Mar 20, 2023
@kopancek kopancek deleted the milan/ronly_code_host_config branch March 20, 2023 14:10
github-actions Bot pushed a commit that referenced this pull request Mar 20, 2023
…49682)

## Video

https://www.loom.com/share/65d920b3a1c54ae8b17d5eb8bc38a9c9

## Test plan

CSS change only. Tested locally, works as shown on the video above.

## App preview:

- [Web](https://sg-web-milan-ronly-code-host-config.onrender.com/search)

Check out the [client app preview
documentation](https://docs.sourcegraph.com/dev/how-to/client_pr_previews)
to learn more.

(cherry picked from commit 6cef2d4)
kopancek added a commit that referenced this pull request Mar 20, 2023
…e host config (#49693)

## Video

https://www.loom.com/share/65d920b3a1c54ae8b17d5eb8bc38a9c9


## Test plan

CSS change only. Tested locally, works as shown on the video above.

## App preview:

- [Web](https://sg-web-milan-ronly-code-host-config.onrender.com/search)

Check out the [client app preview
documentation](https://docs.sourcegraph.com/dev/how-to/client_pr_previews)
to learn more.
 <br> Backport 6cef2d4 from #49682

Co-authored-by: Milan Freml <kopancek@users.noreply.github.com>
Co-authored-by: Milan Freml <milan.freml@sourcegraph.com>
fkling added a commit that referenced this pull request Jun 13, 2024
PR #49682 made some CSS changes to hide the caret as well as bracket
matching for this input. I assume that seeing those in a read-only input
was confusing.

However, hiding the textarea element also breaks copying the input's
value. Instead of hiding the textarea, we are now hiding the visiual
representation of the caret.

A noteable difference in behavior now is that it's possible to focus the
input via tab, but there is no visual indiciation that the editor has
focus (since we hide the caret, as before).
fkling added a commit that referenced this pull request Jun 13, 2024
…63239)

PR #49682 made some CSS changes to hide the caret as well as bracket
matching for this input. I assume that seeing those in a read-only input
was confusing.

However, hiding the textarea element also breaks copying the input's
value. Instead of hiding the textarea, we are now hiding the visiual
representation of the caret.

A noteable difference in behavior now is that it's possible to focus the
input via tab, but there is no visual indiciation that the editor has
focus (since we hide the caret, as before).


## Test plan

Manual tested on
https://sourcegraph.test:3443/site-admin/external-services/RXh0ZXJuYWxTZXJ2aWNlOjky
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.

4 participants