src/components/PrintHandler/PrintHandler.scss
.PrintHandler {
  /* don't want to set display:none otherwise embed doesn't print; */
  height: 0;
}

@media print {
  html {
    height: 100%;
  }

  body {
    height: 100%;
    overflow: visible !important;
  }

  .PrintHandler {
    display: block;
    height: 100%;

    /* workaround for getting safari to print to the whole page */
    &.ios-print {
      inset-block-start: 0;
      inset-block-end: 0;
      inset-inline-start: 0;
      inset-inline-end: 0;
      position: absolute;
    }

    img {
      display: block !important;
      max-width: 100%;
      max-height: 100%;
      height: 100%;
      width: 100%;
      object-fit: contain;
    }

    /* fix bug in the latest chrome version(108) which print the extra blank page */
    .img:not(:last-child) {
      page-break-after: always;
    }

    .page__container {
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      padding: 10px;
      min-height: 100%;
      min-width: 100%;
      font-size: 10px;

      .page__header {
        align-self: flex-start;
        font-size: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 0.6rem;
        border-bottom: 0.1rem solid black;
      }

      .note {
        display: flex;
        flex-direction: column;
        padding: 0.6rem;
        border: 0.1rem lightgray solid;
        border-radius: 0.4rem;
        margin-bottom: 0.5rem;

        .note__info {
          font-size: 1.3rem;
          margin-bottom: 0.1rem;
        }

        .note__info--with-icon {
          display: flex;

          .note__icon {
            width: 1.65rem;
            height: 1.65rem;
            margin-top: -0.1rem;
            margin-inline-end: 0.2rem;

            path:not([fill='none']) {
              fill: currentColor;
            }
          }
        }

        .note__root {
          .note__content {
            margin-inline-start: 0.3rem;
          }
        }

        .note__reply {
          margin: 0.5rem 0 0 2rem;
        }

        .note__content {
          font-size: 1.2rem;
          margin-top: 0.1rem;
        }
      }
    }

    #print-handler {
      height: 100%;
    }
  }

  #app {
    overflow: visible !important;
  }

  .App {
    display: none !important;
  }

  html,
  body,
  #app {
    // Workaround for Printing in newer version (80+) of Firefox adds extra padding/margin on page
    max-width: none !important;
  }

  iframe {
    display: none;
  }
}
