fix(docs-infra): fix table header layout in API pages (#24919)
PR Close #24919
This commit is contained in:
parent
2d38fa104b
commit
3cd9645daa
|
@ -31,13 +31,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.method-table, .option-table, .list-table {
|
.method-table, .option-table, .list-table {
|
||||||
th {
|
.with-github-links {
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
h3 {
|
justify-content: space-between;
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.github-links {
|
.github-links {
|
||||||
a {
|
a {
|
||||||
|
|
|
@ -13,8 +13,10 @@
|
||||||
<a id="{$ option.anchor $}"></a>
|
<a id="{$ option.anchor $}"></a>
|
||||||
<table class="is-full-width option-table">
|
<table class="is-full-width option-table">
|
||||||
<thead><tr><th>
|
<thead><tr><th>
|
||||||
|
<div class="with-github-links">
|
||||||
<h3>{$ option.name $}</h3>
|
<h3>{$ option.name $}</h3>
|
||||||
{$ github.githubLinks(option, versionInfo) $}
|
{$ github.githubLinks(option, versionInfo) $}
|
||||||
|
</div>
|
||||||
</th></tr></thead>
|
</th></tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
<a id="{$ method.anchor $}"></a>
|
<a id="{$ method.anchor $}"></a>
|
||||||
<table class="is-full-width method-table {$ cssClass $}">
|
<table class="is-full-width method-table {$ cssClass $}">
|
||||||
{% if method.name !== 'constructor' %}<thead><tr><th>
|
{% if method.name !== 'constructor' %}<thead><tr><th>
|
||||||
|
<div class="with-github-links">
|
||||||
<h3>
|
<h3>
|
||||||
{% if method.isCallMember %}<i>call signature</i>
|
{% if method.isCallMember %}<i>call signature</i>
|
||||||
{% elseif method.isNewMember %}<i>construct signature</i>
|
{% elseif method.isNewMember %}<i>construct signature</i>
|
||||||
|
@ -81,6 +82,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h3>
|
</h3>
|
||||||
{$ github.githubLinks(method, versionInfo) $}
|
{$ github.githubLinks(method, versionInfo) $}
|
||||||
|
</div>
|
||||||
</th></tr></thead>{% endif %}
|
</th></tr></thead>{% endif %}
|
||||||
<tbody>
|
<tbody>
|
||||||
{% if method.shortDescription %}<tr>
|
{% if method.shortDescription %}<tr>
|
||||||
|
|
Loading…
Reference in New Issue