From a551a2759b9c06b8f9bd81126a56dc2b5c8685cc Mon Sep 17 00:00:00 2001 From: Jimmy Domagala-Tang Date: Wed, 20 Dec 2023 09:27:53 -0500 Subject: [PATCH] Merge pull request #16311 from overleaf/jdt-writefull-editor-notif-discount Hide Writefull ad on small screens, and update content GitOrigin-RevId: 0263849037ff0c652a683d8ac5f8befa797aaaa0 --- services/web/frontend/extracted-translations.json | 1 + services/web/frontend/stylesheets/app/editor.less | 8 ++++++++ services/web/locales/en.json | 3 ++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index ed456e355b..0ba22e93e9 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -1352,6 +1352,7 @@ "try_recompile_project_or_troubleshoot": "", "try_relinking_provider": "", "try_to_compile_despite_errors": "", + "try_writefull_for_free": "", "turn_off": "", "turn_off_link_sharing": "", "turn_on": "", diff --git a/services/web/frontend/stylesheets/app/editor.less b/services/web/frontend/stylesheets/app/editor.less index 558be4a00d..d52d726a08 100644 --- a/services/web/frontend/stylesheets/app/editor.less +++ b/services/web/frontend/stylesheets/app/editor.less @@ -639,6 +639,7 @@ CodeMirror // rule is added automatically (inline and not configurable), the only workaround is to use `!important`. .editor-container { overflow: visible !important; + container-type: inline-size; } .pdf-preview-messages { @@ -758,3 +759,10 @@ grammarly-extension[data-grammarly-shadow-root='true'] { width: 80%; max-width: 560px; } + +/* If the container is smaller than 400px */ +@container (max-width: 400px) { + .writefull-notification { + display: none; + } +} diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 4c1e809351..f18ec7136d 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -1969,6 +1969,7 @@ "try_recompile_project_or_troubleshoot": "Please try recompiling the project from scratch, and if that doesn’t help, follow our <0>troubleshooting guide.", "try_relinking_provider": "It looks like you need to re-link your __provider__ account.", "try_to_compile_despite_errors": "Try to compile despite errors", + "try_writefull_for_free": "Try Writefull for free", "turn_off": "Turn off", "turn_off_link_sharing": "Turn off link sharing", "turn_on": "Turn on", @@ -2122,7 +2123,7 @@ "would_you_like_to_see_a_university_subscription": "Would you like to see a university-wide __appName__ subscription at your university?", "writefull": "Writefull", "writefull_learn_more": "Learn more about Writefull for Overleaf", - "writefull_prompt_body": "Turn on the new Writefull integration to get AI-powered language feedback specifically tailored to research writing.", + "writefull_prompt_body": "Get free AI-powered language feedback with our Writefull integration. (You can also grab 10% off Writefull premium with the code OVERLEAF10.)", "writefull_prompt_title": "AI writing assistance in Overleaf", "writefull_settings_description": "Get free AI-based language feedback specifically tailored for research writing with Writefull for Overleaf. Plus, if you upgrade to Writefull Premium you can use TeXGPT to generate LaTeX code—use OVERLEAF10 at the checkout to get 10% off.", "writefull_settings_instructions": "To use Writefull, log in from the Writefull toolbar in the Overleaf editor. And don’t forget, if you upgrade to Writefull Premium you can use TeXGPT to generate LaTeX code—use OVERLEAF10 at the checkout to get 10% off.",