File tree Expand file tree Collapse file tree 3 files changed +40
-28
lines changed
src/components/DiffViewer Expand file tree Collapse file tree 3 files changed +40
-28
lines changed Original file line number Diff line number Diff line change @@ -17,35 +17,40 @@ export const LineCountDisplay: React.FC<LineCountDisplayProps> = ({ stats }) =>
1717
1818 return (
1919 < div className = "line-count-display" >
20- { stats . added > 0 && (
21- < span className = "line-count-item added" >
22- +
23- { stats . added }
24- { " " }
25- added
26- </ span >
27- ) }
28- { stats . removed > 0 && (
29- < span className = "line-count-item removed" >
30- -
31- { stats . removed }
32- { " " }
33- removed
34- </ span >
35- ) }
36- { stats . modified > 0 && (
37- < span className = "line-count-item modified" >
38- ~
39- { stats . modified }
20+ < div className = "line-count-item-sub-holder" >
21+ { stats . added > 0 && (
22+ < span className = "line-count-item added" >
23+ +
24+ { stats . added }
25+ { " " }
26+ added
27+ </ span >
28+ ) }
29+
30+ { stats . removed > 0 && (
31+ < span className = "line-count-item removed" >
32+ -
33+ { stats . removed }
34+ { " " }
35+ removed
36+ </ span >
37+ ) }
38+ </ div >
39+ < div className = "line-count-item-sub-holder" >
40+ { stats . modified > 0 && (
41+ < span className = "line-count-item modified" >
42+ ~
43+ { stats . modified }
44+ { " " }
45+ modified
46+ </ span >
47+ ) }
48+ < span className = "line-count-item total" >
49+ { stats . total }
4050 { " " }
41- modified
51+ total changes
4252 </ span >
43- ) }
44- < span className = "line-count-item total" >
45- { stats . total }
46- { " " }
47- total changes
48- </ span >
53+ </ div >
4954 </ div >
5055 ) ;
5156} ;
Original file line number Diff line number Diff line change @@ -148,7 +148,6 @@ export const VirtualizedDiffViewer: React.FC<VirtualizedDiffViewerProps> = ({
148148 < div > < span > { leftTitle } </ span > </ div >
149149 < div > < span > { rightTitle } </ span > </ div >
150150 </ div >
151-
152151 { showLineCount && (
153152 < LineCountDisplay stats = { lineCountStats } />
154153 ) }
Original file line number Diff line number Diff line change 4646.line-count-display {
4747 display : flex;
4848 gap : 12px ;
49+ margin-top : 5px ;
4950 align-items : center;
5051 font-size : 11px ;
5152 color : # f8f8f2 ;
5253 margin-left : auto;
54+ justify-content : space-between;
55+ }
56+
57+ .line-count-item-sub-holder {
58+ display : flex;
59+ align-items : center;
60+ gap : 4px ;
5361}
5462
5563.line-count-item {
You can’t perform that action at this time.
0 commit comments