Skip to content

Commit 7a72e42

Browse files
authored
Merge pull request doxygen#12230 from albert-github/feature/bug_inline_simple_structs
Representation of (long) inline simple structs
2 parents b74ddc9 + 8bf6e06 commit 7a72e42

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

src/htmlgen.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3523,15 +3523,15 @@ void HtmlGenerator::startInlineHeader()
35233523
{
35243524
if (m_emptySection)
35253525
{
3526-
m_t << "<table class=\"memberdecls\">\n";
3526+
m_t << "<table class=\"memberdecls memberdecls-inline\">\n";
35273527
m_emptySection=FALSE;
35283528
}
3529-
m_t << "<tr><td colspan=\"2\"><h3>";
3529+
m_t << "<tr><th colspan=\"2\"><h3>";
35303530
}
35313531

35323532
void HtmlGenerator::endInlineHeader()
35333533
{
3534-
m_t << "</h3></td></tr>\n";
3534+
m_t << "</h3></th></tr>\n";
35353535
}
35363536

35373537
void HtmlGenerator::startMemberDocSimple(bool isEnum)

templates/html/doxygen.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,11 @@ table.memberdecls {
723723
padding: 0px;
724724
}
725725

726+
table.memberdecls-inline {
727+
border: 1px solid var(--memdef-border-color);
728+
border-radius: 4px;
729+
}
730+
726731
.memberdecls td, .fieldtable tr {
727732
transition-property: background-color, box-shadow;
728733
transition-duration: 0.5s;
@@ -1377,7 +1382,11 @@ table.fieldtable {
13771382
border-bottom: none;
13781383
}
13791384

1380-
.fieldtable th {
1385+
.memberdecls-inline th h3 {
1386+
margin-left: 15px;
1387+
}
1388+
1389+
.memberdecls-inline th, .fieldtable th {
13811390
background-color: var(--memdef-title-background-color);
13821391
font-size: 90%;
13831392
color: var(--memdef-proto-text-color);

0 commit comments

Comments
 (0)