1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00
phorge-phorge/webroot/rsrc/css/application
epriestley 5f0d8e09d8 Use "user-select: none" to provide a visual cue about copy/paste JS magic
Summary:
  - For line numbers, use "user-select: none" to make them unselectable. This provides a stronger visual cue that copy/paste is enchanted.
  - In Paste, make it look sensible again after the blame-on-blame refactor in Diffusion. See also TODO to share this code formally.
  - In Diffusion, use the "phabricator-oncopy" behavior.

NOTE: I left blame/commit columns selectable in Diffusion, since you might reasonably want to copy/paste them?

NOTE: In Differential, the left side of the diff still highlights, even though it will be copied only if you select part of a line on the left and nothing else. But this seemed like a reasonable behavior, so I left it.

Test Plan:
  - Looked at Paste. Saw a nice line number column. Selected text, got the expected selection. Copied text, got the expected copy.
  - Looked at Diffusion. Saw a nice line number column, still. Selected text, got expected selection. Copied text, got expected copy.
  - Looked at Differential. Highlighted stuff, got expected results. Copied stuff, got expected results.

Reviewers: btrahan, vrana, jungejason

Reviewed By: vrana

CC: aran

Maniphest Tasks: T1123

Differential Revision: https://secure.phabricator.com/D2242
2012-04-16 15:55:16 -07:00
..
base Minor, further derps. 2012-03-26 09:43:17 -07:00
chatlog Add a basic chatlog 2012-02-17 10:21:38 -08:00
contentsource Use text, not icons, to indicate content sources 2011-09-01 10:07:16 -07:00
countdown Countdown tweaks 2011-06-13 18:53:43 -07:00
diff Separate the inline comment summary element into a separate view 2012-03-19 19:45:16 -07:00
differential Use "user-select: none" to provide a visual cue about copy/paste JS magic 2012-04-16 15:55:16 -07:00
diffusion Use "user-select: none" to provide a visual cue about copy/paste JS magic 2012-04-16 15:55:16 -07:00
directory Improve homepage buttons for new users 2012-04-02 15:21:02 -07:00
feed Don't set feed width on chromeless page 2012-04-09 15:11:41 -07:00
files Streamline Files interfaces 2011-07-29 17:56:49 -07:00
flag Add "Flags" to allow users to collect the things they love 2012-03-27 16:22:40 -07:00
herald General Herald refactoring pass 2012-03-30 10:49:55 -07:00
maniphest Delete unused CSS 2012-04-05 10:54:06 -07:00
objectselector Increase the click target area for the object selector 2012-03-19 19:20:49 -07:00
owners Some owners read workflows. 2011-04-03 19:20:47 -07:00
phortune For discussion -- Stripe integration 2012-04-04 16:09:29 -07:00
phriction Phriction - kill tabs 2011-12-15 14:35:38 -08:00
profile Add a Join / Leave button to Projects 2012-01-25 11:51:20 -08:00
projects Improve display of long project names in task list UI 2012-04-02 11:16:05 -07:00
search Improve search result listing 2011-06-29 13:25:38 -07:00
slowvote Render slowvote respondents as a facepile instead of smushed-together names 2011-07-09 10:55:09 -07:00
uiexample AphrontPagerView and UIExamples. 2011-03-31 17:06:33 -07:00