Skip to content

Commit 89da040

Browse files
authored
Add css styles for table elements to prevent horizontal scroll (#12)
1 parent ff3929e commit 89da040

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

src/PRDigest.NET/HtmlGenerator.cs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,31 @@ pre code {
612612
border-radius: 0;
613613
}
614614
615+
table {
616+
width: 100%;
617+
border-collapse: collapse;
618+
margin: 16px 0;
619+
font-size: 14px;
620+
color: #374151;
621+
}
622+
623+
th {
624+
background: #f3f4f6;
625+
color: #1a1a1a;
626+
font-weight: 600;
627+
text-align: left;
628+
padding: 10px 14px;
629+
border: 1px solid #e5e7eb;
630+
overflow-wrap: break-word;
631+
}
632+
633+
td {
634+
padding: 8px 14px;
635+
border: 1px solid #e5e7eb;
636+
overflow-wrap: anywhere;
637+
word-break: break-word;
638+
}
639+
615640
details {
616641
margin: 0px 0px 8px 0px;
617642
background-color: #f5f5f5;
@@ -928,6 +953,17 @@ pre code {
928953
border-color: #374151;
929954
}
930955
956+
th {
957+
background: #374151;
958+
color: #f9fafb;
959+
border-color: #4b5563;
960+
}
961+
962+
td {
963+
border-color: #4b5563;
964+
color: #d1d5db;
965+
}
966+
931967
.stat-card {
932968
background: #374151;
933969
border-color: #4b5563;

0 commit comments

Comments
 (0)