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: Use a readonly textarea for non-editable comments. #8632

Merged
merged 3 commits into from
Nov 4, 2024

Conversation

gonfunko
Copy link
Contributor

The basics

The details

Resolves

Fixes #2917

Proposed Changes

This PR uses the regular block comment bubble, but with the textarea's readonly attribute set, for displaying block comments in readonly workspaces. This allows the comments to be scrolled (and their text selected/copied) and otherwise interacted with normally, while prohibiting edits.

@gonfunko gonfunko requested a review from a team as a code owner October 29, 2024 18:22
@gonfunko gonfunko requested a review from cpcallen October 29, 2024 18:22
@github-actions github-actions bot added the PR: fix Fixes a bug label Oct 29, 2024
@cpcallen
Copy link
Contributor

cpcallen commented Nov 1, 2024

Since nothing here appears to be breaking, it could probably have been done in v11 instead.

@gonfunko gonfunko changed the base branch from rc/v12.0.0 to develop November 4, 2024 17:14
@github-actions github-actions bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels Nov 4, 2024
@gonfunko gonfunko changed the base branch from develop to rc/v12.0.0 November 4, 2024 17:33
@gonfunko gonfunko changed the base branch from rc/v12.0.0 to develop November 4, 2024 17:33
@github-actions github-actions bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels Nov 4, 2024
@gonfunko gonfunko closed this Nov 4, 2024
@gonfunko gonfunko reopened this Nov 4, 2024
@gonfunko
Copy link
Contributor Author

gonfunko commented Nov 4, 2024

Since nothing here appears to be breaking, it could probably have been done in v11 instead.

Rebased accordingly.

@gonfunko gonfunko merged commit aedcfd6 into google:develop Nov 4, 2024
7 checks passed
@gonfunko gonfunko deleted the readonly-comments branch November 4, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Long Non-Editable Comments Are Hard to Read
2 participants