Skip to content

Commit e2fd2aa

Browse files
authored
Update DirCmpReport.cpp (#1892)
Make the HTML report header sticky so it stays in place when scrolling down.
1 parent 9390e82 commit e2fd2aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Src/DirCmpReport.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@ void DirCmpReport::GenerateHTMLHeader()
376376
WriteStringEntityAware(m_sTitle);
377377
WriteString(_T("</title>\n"));
378378
WriteString(_T("\t<style type=\"text/css\">\n\t<!--\n"));
379+
WriteString(_T("\t\tth {\n"));
380+
WriteString(_T("\t\t\tposition: sticky; top: 0;\n"));
381+
WriteString(_T("\t\t}\n"));
379382
WriteString(_T("\t\tbody {\n"));
380383
WriteString(_T("\t\t\tfont-family: sans-serif;\n"));
381384
WriteString(_T("\t\t\tfont-size: smaller;\n"));

0 commit comments

Comments
 (0)