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 { | ||||
|     th { | ||||
|       display: flex; | ||||
|     .with-github-links { | ||||
|       align-items: center; | ||||
| 
 | ||||
|       h3 { | ||||
|         flex: 1; | ||||
|       } | ||||
|       display: flex; | ||||
|       justify-content: space-between; | ||||
| 
 | ||||
|       .github-links { | ||||
|         a { | ||||
|  | ||||
| @ -13,8 +13,10 @@ | ||||
|   <a id="{$ option.anchor $}"></a> | ||||
|   <table class="is-full-width option-table"> | ||||
|     <thead><tr><th> | ||||
|       <h3>{$ option.name $}</h3> | ||||
|       {$ github.githubLinks(option, versionInfo) $} | ||||
|       <div class="with-github-links"> | ||||
|         <h3>{$ option.name $}</h3> | ||||
|         {$ github.githubLinks(option, versionInfo) $} | ||||
|       </div> | ||||
|     </th></tr></thead> | ||||
|     <tbody> | ||||
|       <tr> | ||||
|  | ||||
| @ -74,13 +74,15 @@ | ||||
| <a id="{$ method.anchor $}"></a> | ||||
| <table class="is-full-width method-table {$ cssClass $}"> | ||||
|   {% if method.name !== 'constructor' %}<thead><tr><th> | ||||
|     <h3> | ||||
|       {% if method.isCallMember %}<i>call signature</i> | ||||
|       {% elseif method.isNewMember %}<i>construct signature</i> | ||||
|       {% else %}{$ method.name $}() | ||||
|       {% endif %} | ||||
|     </h3> | ||||
|     {$ github.githubLinks(method, versionInfo) $} | ||||
|     <div class="with-github-links"> | ||||
|       <h3> | ||||
|         {% if method.isCallMember %}<i>call signature</i> | ||||
|         {% elseif method.isNewMember %}<i>construct signature</i> | ||||
|         {% else %}{$ method.name $}() | ||||
|         {% endif %} | ||||
|       </h3> | ||||
|       {$ github.githubLinks(method, versionInfo) $} | ||||
|     </div> | ||||
|   </th></tr></thead>{% endif %} | ||||
|   <tbody> | ||||
|     {% if method.shortDescription %}<tr> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user