Skip to content

Commit 8bf6e06

Browse files
committed
Representation of (long) inline simple structs
When we have the setting `INLINE_SIMPLE_STRUCTS` set to `YES` the representation of the long form (as can be seen with the `struct my_struct_t` of the second example in #112228) is not correct, the header of the table is missing. Introducing here the css class `memberdecls-inline` as adding the settings directly to the css class `memberdecls` leads to problem with other `memberdecls` headers. The words "Data fields" are also representing a header and should be noted as such.
1 parent 8f0b951 commit 8bf6e06

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
@@ -3517,15 +3517,15 @@ void HtmlGenerator::startInlineHeader()
35173517
{
35183518
if (m_emptySection)
35193519
{
3520-
m_t << "<table class=\"memberdecls\">\n";
3520+
m_t << "<table class=\"memberdecls memberdecls-inline\">\n";
35213521
m_emptySection=FALSE;
35223522
}
3523-
m_t << "<tr><td colspan=\"2\"><h3>";
3523+
m_t << "<tr><th colspan=\"2\"><h3>";
35243524
}
35253525

35263526
void HtmlGenerator::endInlineHeader()
35273527
{
3528-
m_t << "</h3></td></tr>\n";
3528+
m_t << "</h3></th></tr>\n";
35293529
}
35303530

35313531
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)