Sfoglia il codice sorgente

Merge pull request #16311 from overleaf/jdt-writefull-editor-notif-discount

Hide Writefull ad on small screens, and update content

GitOrigin-RevId: 0263849037ff0c652a683d8ac5f8befa797aaaa0
Jimmy Domagala-Tang 2 anni fa
parent
commit
944753c9b5

+ 1 - 0
services/web/frontend/extracted-translations.json

@@ -1352,6 +1352,7 @@
   "try_recompile_project_or_troubleshoot": "",
   "try_recompile_project_or_troubleshoot": "",
   "try_relinking_provider": "",
   "try_relinking_provider": "",
   "try_to_compile_despite_errors": "",
   "try_to_compile_despite_errors": "",
+  "try_writefull_for_free": "",
   "turn_off": "",
   "turn_off": "",
   "turn_off_link_sharing": "",
   "turn_off_link_sharing": "",
   "turn_on": "",
   "turn_on": "",

+ 8 - 0
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`.
 // rule is added automatically (inline and not configurable), the only workaround is to use `!important`.
 .editor-container {
 .editor-container {
   overflow: visible !important;
   overflow: visible !important;
+  container-type: inline-size;
 }
 }
 
 
 .pdf-preview-messages {
 .pdf-preview-messages {
@@ -758,3 +759,10 @@ grammarly-extension[data-grammarly-shadow-root='true'] {
   width: 80%;
   width: 80%;
   max-width: 560px;
   max-width: 560px;
 }
 }
+
+/* If the container is smaller than 400px */
+@container (max-width: 400px) {
+  .writefull-notification {
+    display: none;
+  }
+}

+ 2 - 1
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</0>.",
   "try_recompile_project_or_troubleshoot": "Please try recompiling the project from scratch, and if that doesn’t help, follow our <0>troubleshooting guide</0>.",
   "try_relinking_provider": "It looks like you need to re-link your __provider__ account.",
   "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_to_compile_despite_errors": "Try to compile despite errors",
+  "try_writefull_for_free": "Try Writefull for free",
   "turn_off": "Turn off",
   "turn_off": "Turn off",
   "turn_off_link_sharing": "Turn off link sharing",
   "turn_off_link_sharing": "Turn off link sharing",
   "turn_on": "Turn on",
   "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?",
   "would_you_like_to_see_a_university_subscription": "Would you like to see a university-wide __appName__ subscription at your university?",
   "writefull": "Writefull",
   "writefull": "Writefull",
   "writefull_learn_more": "Learn more about Writefull for Overleaf",
   "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_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_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.",
   "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.",