Skip to content

Commit

Permalink
fix(form): css inconsistencies
Browse files Browse the repository at this point in the history
impacting show / hide questions

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
btry committed Jun 4, 2020

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent c00b50f commit e9aa87a
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion css/styles.css
Original file line number Diff line number Diff line change
@@ -225,7 +225,7 @@ input.submit_button:focus {
padding-left: 0;
}

#plugin_formcreator_form.plugin_formcreator_form [data-itemtype = "PluginFormcreatorQuestion"],
#plugin_formcreator_form.plugin_formcreator_form [data-itemtype = "PluginFormcreatorQuestion"]:not([hidden]),
#plugin_formcreator_form.plugin_formcreator_form .plugin_formcreator_gap {
vertical-align: top;
display: inline-block;
2 changes: 1 addition & 1 deletion inc/form.class.php
Original file line number Diff line number Diff line change
@@ -1175,7 +1175,7 @@ public function displayUserForm() {
#plugin_formcreator_form.plugin_formcreator_form [data-itemtype = "PluginFormcreatorQuestion"][data-gs-width="' . ($i+1) . '"],
#plugin_formcreator_form.plugin_formcreator_form .plugin_formcreator_gap[data-gs-width="' . ($i+1) . '"]
{
min-width: $width_percent%;
min-width: ' . $width_percent . '%;
width: ' . $width . '%;
}
';
2 changes: 1 addition & 1 deletion inc/formanswer.class.php
Original file line number Diff line number Diff line change
@@ -466,7 +466,7 @@ public function showForm($ID, $options = []) {
#plugin_formcreator_form.plugin_formcreator_form [data-itemtype = "PluginFormcreatorQuestion"][data-gs-width="' . ($i+1) . '"],
#plugin_formcreator_form.plugin_formcreator_form .plugin_formcreator_gap[data-gs-width="' . ($i+1) . '"]
{
min-width: $width_percent%;
min-width: ' . $width_percent . '%;
width: ' . $width . '%;
}
';

0 comments on commit e9aa87a

Please sign in to comment.