@financial-times/qanda-ui 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/qanda.scss +13 -1
  2. package/package.json +1 -1
package/dist/qanda.scss CHANGED
@@ -696,9 +696,12 @@ $app-header-color: #007acc;
696
696
  }
697
697
 
698
698
  .input-textarea {
699
- min-height: 180px;
699
+ min-height: 120px;
700
700
  background-color: transparent;
701
701
  border: none;
702
+ @media (min-width: 740px) {
703
+ min-height: 180px;
704
+ }
702
705
  }
703
706
 
704
707
  .input-textarea:focus-visible {
@@ -825,6 +828,15 @@ $app-header-color: #007acc;
825
828
  )
826
829
  );
827
830
 
831
+ @media (max-width: 740px) {
832
+ // locks scrolling for narrow viewport on web
833
+ html:has(.qanda-container .overlay),
834
+ // locks scroll container for FT app
835
+ body:has(.qanda-container .overlay) .js-vertical-scroller {
836
+ overflow: hidden;
837
+ }
838
+ }
839
+
828
840
  .qanda-container {
829
841
  body {
830
842
  margin: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/qanda-ui",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Components for the Live Q&A (AKA Ask an Expert) UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",