From 8147bd6b06a1301ea256ad7c2989547c5747dc39 Mon Sep 17 00:00:00 2001 From: "marc.sirisak" Date: Tue, 18 Jun 2024 10:57:46 +0200 Subject: [PATCH] feat(gaufre): update style to match upstream --- res/css/common/_TchapGaufre.pcss | 13 ++++++++++--- src/tchap/components/views/common/Gaufre.tsx | 2 +- webpack.config.js | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/res/css/common/_TchapGaufre.pcss b/res/css/common/_TchapGaufre.pcss index e9d5c75322..2cfc1959ae 100644 --- a/res/css/common/_TchapGaufre.pcss +++ b/res/css/common/_TchapGaufre.pcss @@ -1,8 +1,15 @@ .lasuite-gaufre-tchap { - border: solid 1px #9999fc; - color: #9999fc; + --gaufre-color: #9999fc; + + border: solid 1px var(--gaufre-color); + color: var(--gaufre-color); &::before { - background: #9999fc; + background: var(--gaufre-color); } +} + +#tchap-gaufre { + overflow: scroll; + height: 300px; } \ No newline at end of file diff --git a/src/tchap/components/views/common/Gaufre.tsx b/src/tchap/components/views/common/Gaufre.tsx index 1874ac8512..ed6db5c75e 100644 --- a/src/tchap/components/views/common/Gaufre.tsx +++ b/src/tchap/components/views/common/Gaufre.tsx @@ -63,7 +63,7 @@ const TchapGaufre: React.FC<{ managed={false} focusLock={true} > -
+
); diff --git a/webpack.config.js b/webpack.config.js index 4c484f354e..52b3f76ff2 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -687,7 +687,7 @@ module.exports = (env, argv) => { minify: false, templateParameters: { og_image_url: ogImageUrl, - csp_extra_source: process.env.CSP_EXTRA_SOURCE ?? "", + csp_extra_source: "https://integration.lasuite.numerique.gouv.fr/", // :TCHAP: }, }),