From 74a9299d6d5b23e12148a1b84d4603eafae07ab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mads=20N=C3=B8rgaard?= Date: Tue, 25 Jan 2022 15:24:54 +0100 Subject: [PATCH 1/2] Patch forms auto export module (#116) --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index c57fda0..3ba9ab3 100644 --- a/composer.json +++ b/composer.json @@ -71,6 +71,9 @@ }, "drupal/user_default_page": { "Warning: in_array() expects parameter 2 to be array, null given in user_default_page_user_logout() (https://www.drupal.org/node/3246986)": "https://www.drupal.org/files/issues/2021-11-01/user_default_page-3246986-2.patch" + }, + "drupal/coc_forms_auto_export": { + "3240592 - Problem with phpseclib requirement in 2.x (https://www.drupal.org/project/coc_forms_auto_export/issues/3240592)": "https://www.drupal.org/files/issues/2021-10-04/requirement-namespace-3240592-1.patch" } } } From a0eeba910727df5e90b52cb76dd1257b48ab7e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mads=20N=C3=B8rgaard?= Date: Tue, 25 Jan 2022 15:53:42 +0100 Subject: [PATCH 2/2] Add gin-custom.css to repo. (#115) * Add gin-custom.css to repo. * Add hook_preprocess_page to read custom css --- css/gin-custom.css | 3 +++ os2forms_forloeb.libraries.yml | 7 +++++++ os2forms_forloeb.module | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 css/gin-custom.css create mode 100644 os2forms_forloeb.libraries.yml diff --git a/css/gin-custom.css b/css/gin-custom.css new file mode 100644 index 0000000..6f3b3db --- /dev/null +++ b/css/gin-custom.css @@ -0,0 +1,3 @@ +.ui-dialog:not(.ui-dialog-off-canvas) { + width: 70vw!important; +} diff --git a/os2forms_forloeb.libraries.yml b/os2forms_forloeb.libraries.yml new file mode 100644 index 0000000..b9612e1 --- /dev/null +++ b/os2forms_forloeb.libraries.yml @@ -0,0 +1,7 @@ +os2forms_forloeb: + version: 1.x + css: + theme: + css/gin-custom.css: {} + dependencies: + - drupal/gin diff --git a/os2forms_forloeb.module b/os2forms_forloeb.module index c2a6330..2002cf8 100644 --- a/os2forms_forloeb.module +++ b/os2forms_forloeb.module @@ -264,3 +264,7 @@ function os2forms_forloeb_form_alter(&$form, FormStateInterface $form_state, $fo } } } + +function os2forms_forloeb_preprocess_page(&$variables) { + $variables['#attached']['library'][] = 'os2forms_forloeb/os2forms_forloeb'; +}