mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 08:26:15 +00:00
2778 list of thumbnails and long thumbnails now wrap text in HTML Report
This commit is contained in:
parent
13eebf191a
commit
ef0bb45774
@ -670,6 +670,7 @@ class ReportHTML implements TableReportModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
StringBuilder linkToThumbnail = new StringBuilder();
|
StringBuilder linkToThumbnail = new StringBuilder();
|
||||||
|
linkToThumbnail.append("<div id='thumbnail_link'>");
|
||||||
linkToThumbnail.append("<a href=\""); //NON-NLS
|
linkToThumbnail.append("<a href=\""); //NON-NLS
|
||||||
linkToThumbnail.append(contentPath);
|
linkToThumbnail.append(contentPath);
|
||||||
linkToThumbnail.append("\" target=\"_top\">");
|
linkToThumbnail.append("\" target=\"_top\">");
|
||||||
@ -694,7 +695,7 @@ class ReportHTML implements TableReportModule {
|
|||||||
} catch (TskCoreException ex) {
|
} catch (TskCoreException ex) {
|
||||||
logger.log(Level.WARNING, "Could not find get tags for file.", ex); //NON-NLS
|
logger.log(Level.WARNING, "Could not find get tags for file.", ex); //NON-NLS
|
||||||
}
|
}
|
||||||
|
linkToThumbnail.append("</div>");
|
||||||
currentRow.add(linkToThumbnail.toString());
|
currentRow.add(linkToThumbnail.toString());
|
||||||
|
|
||||||
totalCount++;
|
totalCount++;
|
||||||
@ -844,7 +845,9 @@ class ReportHTML implements TableReportModule {
|
|||||||
+ //NON-NLS
|
+ //NON-NLS
|
||||||
"table td {white-space:nowrap; display: table-cell; padding: 2px 3px; font: 13px/20px Arial, Helvetica, sans-serif; min-width: 125px; overflow: auto; text-align:left; }\n"
|
"table td {white-space:nowrap; display: table-cell; padding: 2px 3px; font: 13px/20px Arial, Helvetica, sans-serif; min-width: 125px; overflow: auto; text-align:left; }\n"
|
||||||
+ //NON-NLS
|
+ //NON-NLS
|
||||||
"table tr:nth-child(even) td {background: #f3f3f3;}"; //NON-NLS
|
"table tr:nth-child(even) td {background: #f3f3f3;}\n"
|
||||||
|
+ //NON-NLS
|
||||||
|
"div#thumbnail_link {max-width: 200px; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;}";
|
||||||
cssOut.write(css);
|
cssOut.write(css);
|
||||||
} catch (FileNotFoundException ex) {
|
} catch (FileNotFoundException ex) {
|
||||||
logger.log(Level.SEVERE, "Could not find index.css file to write to.", ex); //NON-NLS
|
logger.log(Level.SEVERE, "Could not find index.css file to write to.", ex); //NON-NLS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user