Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-18609

Code diff should use css pseudo elements for + & - status

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      The diff viewer, has “*+“ and “-*” as a part of the source code line itself, which if copied is quite a nuisance.

      Since, the diff status per line is already colour coded with CSS, pseudo elements can be added via CSS to insert “*“ and “” prepending the code, without it getting selected. Though, some modifications to the server side also need to be to not insert ““ and “*” .

      .refract-container .deletion pre.source::before {
          content: '-';
      }
      
      .refract-container .addition pre.source::before {
          content: '+';
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            7e5ff2205fae rohanOnly
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: