Skip to content

Commit 55b6f0b

Browse files
committed
Handle memItemLeft attributes in css
Handle `memItemLeft` attributes in css for more consistency / easier change by user Analogous `memItemRight`
1 parent e9c6bde commit 55b6f0b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/htmlgen.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2157,7 +2157,7 @@ void HtmlGenerator::endMemberTemplateParams(const QCString &anchor,const QCStrin
21572157
{
21582158
m_t << " inherit " << inheritId;
21592159
}
2160-
m_t << " template\"><td class=\"memItemLeft\" align=\"right\" valign=\"top\">";
2160+
m_t << " template\"><td class=\"memItemLeft\">";
21612161
}
21622162

21632163
void HtmlGenerator::startCompoundTemplateParams()
@@ -2173,15 +2173,15 @@ void HtmlGenerator::endCompoundTemplateParams()
21732173
void HtmlGenerator::insertMemberAlign(bool)
21742174
{
21752175
DBG_HTML(m_t << "<!-- insertMemberAlign -->\n")
2176-
m_t << "&#160;</td><td class=\"memItemRight\" valign=\"bottom\">";
2176+
m_t << "&#160;</td><td class=\"memItemRight\">";
21772177
}
21782178

21792179
void HtmlGenerator::insertMemberAlignLeft(MemberItemType type, bool initTag)
21802180
{
21812181
if (!initTag) m_t << "&#160;</td>";
21822182
switch (type)
21832183
{
2184-
case MemberItemType::Normal: m_t << "<td class=\"memItemLeft\" align=\"right\" valign=\"top\">"; break;
2184+
case MemberItemType::Normal: m_t << "<td class=\"memItemLeft\">"; break;
21852185
case MemberItemType::AnonymousStart: m_t << "<td class=\"memItemLeft anon\">"; break;
21862186
case MemberItemType::AnonymousEnd: m_t << "<td class=\"memItemLeft anonEnd\" valign=\"top\">"; break;
21872187
case MemberItemType::Templated: m_t << "<td class=\"memTemplParams\" colspan=\"2\">"; break;

templates/html/doxygen.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,8 @@ tr:not(:first-child) > td.ititle {
759759
border-bottom: 1px solid var(--memdecl-border-color);
760760
padding-left: 10px;
761761
transition: none;
762+
vertical-align: top;
763+
text-align: right;
762764
}
763765

764766
.memItemRight {
@@ -767,6 +769,7 @@ tr:not(:first-child) > td.ititle {
767769
border-bottom: 1px solid var(--memdecl-border-color);
768770
padding-right: 10px;
769771
transition: none;
772+
vertical-align: bottom;
770773
}
771774

772775
tr.heading + tr[class^='memitem'] td.memItemLeft,

0 commit comments

Comments
 (0)