Skip to content

Commit

Permalink
Update DirCmpReport.cpp (#1892)
Browse files Browse the repository at this point in the history
Make the HTML report header sticky so it stays in place when scrolling down.
  • Loading branch information
mavaddat authored Jun 7, 2023
1 parent 9390e82 commit e2fd2aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Src/DirCmpReport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ void DirCmpReport::GenerateHTMLHeader()
WriteStringEntityAware(m_sTitle);
WriteString(_T("</title>\n"));
WriteString(_T("\t<style type=\"text/css\">\n\t<!--\n"));
WriteString(_T("\t\tth {\n"));
WriteString(_T("\t\t\tposition: sticky; top: 0;\n"));
WriteString(_T("\t\t}\n"));
WriteString(_T("\t\tbody {\n"));
WriteString(_T("\t\t\tfont-family: sans-serif;\n"));
WriteString(_T("\t\t\tfont-size: smaller;\n"));
Expand Down

0 comments on commit e2fd2aa

Please sign in to comment.