@squiz/formatted-text-editor 1.65.1 → 1.66.0

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.66.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a5b0869: Update fte toolbar to max height 100% so that it can be flexible at any width and position placeholder
8
+
3
9
  ## 1.65.1
4
10
 
5
11
  ### Patch Changes
package/lib/index.css CHANGED
@@ -822,6 +822,7 @@
822
822
  outline-width: 0px;
823
823
  }
824
824
  .squiz-fte-scope.squiz-fte-scope__editor .remirror-editor p {
825
+ position: relative;
825
826
  display: block;
826
827
  }
827
828
  .squiz-fte-scope.squiz-fte-scope__editor--bordered {
@@ -909,7 +910,7 @@
909
910
  }
910
911
  .squiz-fte-scope .header-toolbar.show-toolbar {
911
912
  opacity: 1;
912
- max-height: 15vh;
913
+ max-height: 108px;
913
914
  }
914
915
  .squiz-fte-scope__floating-popover {
915
916
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/formatted-text-editor",
3
- "version": "1.65.1",
3
+ "version": "1.66.0",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "private": false,
@@ -23,6 +23,7 @@
23
23
  }
24
24
 
25
25
  p {
26
+ position: relative; // ensures that the placeholder text is positioned correctly
26
27
  /* Make sure content aligned with "text-align: justify" is justified */
27
28
  @apply block;
28
29
  }
@@ -32,6 +32,6 @@
32
32
 
33
33
  &.show-toolbar {
34
34
  opacity: 1;
35
- max-height: 15vh;
35
+ max-height: 108px; // this should mean at least 3 icons can git vertically if needed
36
36
  }
37
37
  }