diff options
Diffstat (limited to 'src/client/views/nodes/formattedText')
4 files changed, 17 insertions, 16 deletions
| diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.scss b/src/client/views/nodes/formattedText/FormattedTextBox.scss index 53aceb533..3cedab1a4 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.scss +++ b/src/client/views/nodes/formattedText/FormattedTextBox.scss @@ -1,4 +1,4 @@ -@import "../../globalCssVariables"; +@import "../../global/globalCssVariables";  .ProseMirror {      width: 100%; @@ -31,7 +31,7 @@ audiotag:hover {      padding: 0;      border-width: 0px;      border-radius: inherit; -    border-color: $intermediate-color; +    border-color: $medium-gray;      box-sizing: border-box;      background-color: inherit;      border-style: solid; @@ -363,7 +363,7 @@ footnote::after {  @media only screen and (max-width: 1000px) { -    @import "../../globalCssVariables"; +    @import "../../global/globalCssVariables";      .ProseMirror {          width: 100%; @@ -381,7 +381,7 @@ footnote::after {          padding: 0;          border-width: 0px;          border-radius: inherit; -        border-color: $intermediate-color; +        border-color: $medium-gray;          box-sizing: border-box;          background-color: inherit;          border-style: solid; diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 95d8f555c..6dd63fb47 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -71,6 +71,7 @@ export interface FormattedTextBoxProps {      xPadding?: number;   // used to override document's settings for xMargin --- see CollectionCarouselView      yPadding?: number;      noSidebar?: boolean; +    dontScale?: boolean;      dontSelectOnLoad?: boolean; // suppress selecting the text box when loaded (and mark as not being associated with scrollTop document field)  }  export const GoogleRef = "googleDocId"; @@ -126,7 +127,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp      @computed get scrollHeight() { return NumCast(this.rootDoc[this.fieldKey + "-scrollHeight"]); }      @computed get sidebarHeight() { return !this.sidebarWidth() ? 0 : NumCast(this.rootDoc[this.SidebarKey + "-height"]); }      @computed get titleHeight() { return this.props.styleProvider?.(this.layoutDoc, this.props, StyleProp.HeaderMargin) || 0; } -    @computed get autoHeightMargins() { return this.titleHeight + (this.layoutDoc._autoHeightMargins && !this.props.dontSelectOnLoad ? NumCast(this.layoutDoc._autoHeightMargins) : 0); } +    @computed get autoHeightMargins() { return this.titleHeight + NumCast(this.layoutDoc._autoHeightMargins); }      @computed get _recording() { return this.dataDoc?.mediaState === "recording"; }      set _recording(value) {          !this.dataDoc.recordingSource && (this.dataDoc.mediaState = value ? "recording" : undefined); @@ -1524,10 +1525,10 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp              <div className="formattedTextBox-cont"                  onWheel={e => this.isContentActive() && e.stopPropagation()}                  style={{ -                    transform: `scale(${scale})`, -                    transformOrigin: "top left", -                    width: `${100 / scale}%`, -                    height: `${100 / scale}%`, +                    transform: this.props.dontScale ? undefined : `scale(${scale})`, +                    transformOrigin: this.props.dontScale ? undefined : "top left", +                    width: this.props.dontScale ? undefined : `${100 / scale}%`, +                    height: this.props.dontScale ? undefined : `${100 / scale}%`,                      // overflowY: this.layoutDoc._autoHeight ? "hidden" : undefined,                      ...this.styleFromLayoutString(scale)   // this converts any expressions in the format string to style props.  e.g., <FormattedTextBox height='{this._headerHeight}px' >                  }}> diff --git a/src/client/views/nodes/formattedText/RichTextMenu.scss b/src/client/views/nodes/formattedText/RichTextMenu.scss index 1d24d6833..c94e93541 100644 --- a/src/client/views/nodes/formattedText/RichTextMenu.scss +++ b/src/client/views/nodes/formattedText/RichTextMenu.scss @@ -1,4 +1,4 @@ -@import "../../globalCssVariables"; +@import "../../global/globalCssVariables";  .button-dropdown-wrapper {      position: relative; @@ -24,7 +24,7 @@          top: 35px;          left: 0;          background-color: #323232; -        color: $light-color-secondary; +        color: $light-gray;          border: 1px solid #4d4d4d;          border-radius: 0 6px 6px 6px;          box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.25); diff --git a/src/client/views/nodes/formattedText/TooltipTextMenu.scss b/src/client/views/nodes/formattedText/TooltipTextMenu.scss index 0e4b752ac..8c4d77da9 100644 --- a/src/client/views/nodes/formattedText/TooltipTextMenu.scss +++ b/src/client/views/nodes/formattedText/TooltipTextMenu.scss @@ -1,4 +1,4 @@ -@import "../views/globalCssVariables"; +@import "../views/global/globalCssVariables";  .ProseMirror-menu-dropdown-wrap {      display: inline-block;      position: relative; @@ -50,7 +50,7 @@          padding: 3px;          &:hover { -            background-color: $light-color-secondary; +            background-color: $light-gray;          }      }  } @@ -294,9 +294,9 @@          top: 31px;          background-color: #323232;          border: 1px solid #4d4d4d; -        color: $light-color-secondary; +        color: $light-gray;          // border: none; -        // border: 1px solid $light-color-secondary; +        // border: 1px solid $light-gray;          border-radius: 0 6px 6px 6px;          padding: 3px;          box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.25); @@ -323,7 +323,7 @@              }              .separated-button { -                border-top: 1px solid $light-color-secondary; +                border-top: 1px solid $light-gray;                  padding-top: 6px;              } | 
