Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically expand long comments when exporting to PDF. #10896

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions components/frontend/src/widgets/DivWithHTML.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@media print {
/* Make sure no scrollbar appears and the HTML content is printed completely */
.with-html {
height: auto !important;
overflow: visible !important;
resize: none !important;
}
}
3 changes: 3 additions & 0 deletions components/frontend/src/widgets/DivWithHTML.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "./DivWithHTML.css"

import { createRef, useLayoutEffect, useState } from "react"

import { childrenPropType } from "../sharedPropTypes"
Expand All @@ -15,6 +17,7 @@ export function DivWithHTML({ children }) {
}, [ref])
return (
<div
className="with-html"
ref={ref}
style={{
wordBreak: "break-word",
Expand Down
1 change: 1 addition & 0 deletions docs/src/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ If your currently installed *Quality-time* version is not the latest version, pl
- Links to documentation on Read the Docs for subjects, metrics, or sources with hyphens in their name wouldn't scroll to the right location. Fixes [#10843](https://github.com/ICTU/quality-time/issues/10843).
- The software documentation was outdated (among other things the API-server health check endpoint). Fixes [#10858](https://github.com/ICTU/quality-time/issues/10858).
- Keep the footer at the bottom of the page even if the report is very short. Fixes [#10877](https://github.com/ICTU/quality-time/issues/10877).
- Automatically expand long comments when exporting to PDF. Fixes [#10892](https://github.com/ICTU/quality-time/issues/10892).

## v5.25.0 - 2025-02-14

Expand Down
Loading