fix(docs-infra): fix table header layout in API pages (#24919)

PR Close #24919
This commit is contained in:
George Kalpakas 2018-07-17 12:14:18 +03:00 committed by Victor Berchet
parent 2d38fa104b
commit 3cd9645daa
3 changed files with 16 additions and 15 deletions

View File

@ -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 {

View File

@ -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>
<h3>{$ option.name $}</h3> <div class="with-github-links">
{$ github.githubLinks(option, versionInfo) $} <h3>{$ option.name $}</h3>
{$ github.githubLinks(option, versionInfo) $}
</div>
</th></tr></thead> </th></tr></thead>
<tbody> <tbody>
<tr> <tr>

View File

@ -74,13 +74,15 @@
<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>
<h3> <div class="with-github-links">
{% if method.isCallMember %}<i>call signature</i> <h3>
{% elseif method.isNewMember %}<i>construct signature</i> {% if method.isCallMember %}<i>call signature</i>
{% else %}{$ method.name $}() {% elseif method.isNewMember %}<i>construct signature</i>
{% endif %} {% else %}{$ method.name $}()
</h3> {% endif %}
{$ github.githubLinks(method, versionInfo) $} </h3>
{$ github.githubLinks(method, versionInfo) $}
</div>
</th></tr></thead>{% endif %} </th></tr></thead>{% endif %}
<tbody> <tbody>
{% if method.shortDescription %}<tr> {% if method.shortDescription %}<tr>