From 56b2dc76914c3812cd1fffe4e97ea43c1040298f Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 28 Jan 2021 19:17:58 -0800 Subject: [PATCH] APIExplorer - Tweak layout in "Rest" section 1. Layout looks wonky on D7 Bartik 2. Tested in D7 Bartik+Garland+Seven --- templates/CRM/Admin/Page/APIExplorer.tpl | 25 ++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Admin/Page/APIExplorer.tpl b/templates/CRM/Admin/Page/APIExplorer.tpl index f17588fafe..3f96d7e481 100644 --- a/templates/CRM/Admin/Page/APIExplorer.tpl +++ b/templates/CRM/Admin/Page/APIExplorer.tpl @@ -203,6 +203,19 @@ text-align: right; font-style: italic; } + .crm-container .api-rest-params pre { + display: inline-block; + } + .crm-container .api-rest-params tr td:first-child { + text-align: right; + } + .crm-container .api-rest-params tr td:first-child + td { + text-align: center; + width: 1em; + } + .crm-container .api-rest-params tr td:first-child + td + td { + text-align: left; + } {/literal} @@ -349,12 +362,16 @@ {strip}