Commit graph

38 commits

Author SHA1 Message Date
fpin
df005c3f06 fix #462: Info lines shrunk in right panel of side-by-side diff 2023-01-02 16:17:16 +01:00
Rodrigo Fernandes
6db4aae9e5
Merge pull request #456 from ericcornelissen/455-sticky-file-headers
Implement support for sticky file headers
2022-11-01 00:14:45 +00:00
Rodrigo Fernandes
5ca9d22276 fix side by side margins and highlight usage of object instead of map 2022-10-30 20:31:33 +00:00
Eric Cornelissen
7d4a5dce6f feat: sticky file headers
Add support for sticky file headers by adding a `stickyFileHeaders`
option to the `Diff2HtmlUI`. By default this feature is disabled. Also
document this option in the README.

The feature is implemented through an optional CSS class on top of the
pre-existing `.d2h-file-header` class. The new class is added on all
file headers if the option is set to `true` (or the `stickyFileHeaders`
method is called).

This class, `.d2h-sticky-header`, has the minimum amount of styling to
get the desired effect. The `position` and `top` values make the headers
stick to the top as long as the wrapper is in the view. The `z-index`
value is needed to ensure the header is displayed over all other content
in the wrapper. In particular, from my testing in Firefox (106.0.2), the
line numbers would display over the header if the `z-index` value isn't
set.
2022-10-30 13:05:53 +01:00
Evan Bovie
a3a0385991 fix prettier complaint 2022-08-25 19:51:21 +00:00
Evan Bovie
a5e2fab2f1
Fix file collapse UI regression
Increase specificity of .d2h-d-none selector
2022-08-25 12:09:43 -07:00
森 雅希
41037b20f3 Set display:flex to align inline-block elements 2022-07-13 19:16:07 +09:00
Rodrigo Fernandes
7253dbb900 fix: Remove display block to allow hidding file contents 2021-09-01 15:39:34 +00:00
Pierric Cistac
7668889493
fix: only display "Viewed" checkbox if fileContentToggle is set 2021-03-01 17:17:08 -05:00
Civan Yavuzsen
9e831469a5 fix: remove unnesesary height property in d2h-files-diff class 2021-02-07 03:27:57 +03:00
Rafael Cortês
242fc5ae7b
feature: Add selected state style 2021-01-23 22:32:50 +00:00
Rafael Cortês
49bf898e0e
clean: Refactor font style 2021-01-23 22:18:03 +00:00
Rafael Cortês
316803df77
feature: Hide viewed files 2021-01-23 15:07:14 +00:00
Rodrigo Fernandes
33076dc13e
fix: Add review suggestions 2020-10-29 09:01:09 +00:00
Rodrigo Fernandes
2d4c293a27
fix: Only allow selection line content instead of parent element 2020-10-27 20:06:45 +00:00
Rodrigo Fernandes
05c774139a
fix: Skip selection of structural lines in side diff 2020-02-09 19:06:44 +00:00
Rodrigo Fernandes
bdd88f4b90
fix: Add missing padding to side by side line numbers 2020-02-09 16:21:06 +00:00
Rodrigo Fernandes
ee58e2d700
feature: Implement smart selection in CSS 2020-02-09 16:08:58 +00:00
Rodrigo Fernandes
dc9c866041
clean: Improve build configurations 2020-01-01 19:51:36 +00:00
Rodrigo Fernandes
4418f5f00a
fix: Line numbers when scrolling 2019-05-01 13:31:21 +01:00
Rodrigo Fernandes
7fbc8c238a
Improve line-height 2018-11-18 15:38:46 +00:00
stockmind
a222ff624c Target and style blank lines in side-by-side view 2018-11-14 22:18:39 +01:00
Rodrigo Fernandes
7290650a08
Fix line height not matching between right and left side 2016-09-10 14:57:53 +01:00
Rodrigo Fernandes
f43e03e785
Fix docs offline and fix css typo 2016-09-10 13:30:51 +01:00
Rodrigo Fernandes
6a47f8f3a5
Fix convert &nbps; to proper white spaces with white-space wrap 2016-09-05 22:34:18 +01:00
Rodrigo Fernandes
ae39ce97b6
Improve css prefixes 2016-05-26 16:33:27 +01:00
Rodrigo Fernandes
fa9bdebe4c
Update tests for new design improvements 2016-05-21 02:09:16 +01:00
Rodrigo Fernandes
f32c6c9f67
Migrate Side-by-Side diffs to hogan.js 2016-05-21 00:39:49 +01:00
Rodrigo Fernandes
7c48e86a99 Add icons and tags to files indicating the type of change 2016-05-20 23:41:37 +01:00
Rodrigo Fernandes
024c37da67 Make file summary more appealing 2016-05-20 23:41:14 +01:00
Rodrigo Fernandes
5cac9fd99f
Improve diff removed changed line background color 2016-05-19 18:11:54 +01:00
Rodrigo Fernandes
1e242ded9a
Improve fonts and font sizes 2016-05-07 15:15:29 +01:00
Rodrigo Fernandes
aa2382436e
Format CSS with 2 spaces 2016-05-07 15:14:05 +01:00
Ivan Vorontsov
619b43ffa4 Implemented separated column selection through javascript clipboard hook. 2016-05-01 22:02:11 +03:00
Rodrigo Fernandes
75c4c2da46 Clean files summary and diff headers and line numbers 2016-02-21 16:46:07 +00:00
Rodrigo Fernandes
d6a03668c4 Fix line wrapping 2016-02-21 16:40:22 +00:00
Rodrigo Fernandes
adc4b629c1 Prepare for nunjucks release 2016-02-21 14:45:50 +00:00
Rodrigo Fernandes
43666f655a Fix file summary switch
Introduce diff2html-ui to perform any ui anymations or dynamic changes
like hightlight or animations.
2016-02-07 14:19:23 +00:00
Renamed from css/diff2html.css (Browse further)