File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /* stylelint-disable declaration-no-important */
2+ @media print {
3+ html ,
4+ body {
5+ overflow : visible !important ;
6+ height : auto !important ;
7+ }
8+
9+ [id = 'pneumatic-frontend' ] {
10+ overflow : visible !important ;
11+ height : auto !important ;
12+ }
13+
14+ main .container-fluid .row {
15+ display : flex !important ;
16+ }
17+
18+ * {
19+ print-color-adjust : exact;
20+ }
21+
22+ * {
23+ scrollbar-width : none;
24+ }
25+
26+ * ::-webkit-scrollbar {
27+ display : none;
28+ }
29+
30+ .no-print {
31+ display : none !important ;
32+ }
33+ }
34+
Original file line number Diff line number Diff line change 22// Table of Contents
33// -------------------
44// 00. Variables
5+ // 00.1. Print
56// 01. Library
67// 02. Reset style
78// 03. Base style
1415
1516@import './variables/color' ;
1617
18+ /* ===================
19+ // 00.1. Print
20+ // =================== */
21+
22+ @import './print/print.css' ;
23+
1724/* ===================
1825// 01. Library
1926// ===================
93100/* Fix bootstrap style */
94101.form-control {
95102 font-size : 1.5rem !important ;
96- }
103+ }
Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ export function TaskCard({
365365 < UsersDropdown
366366 isMulti
367367 controlSize = "sm"
368- className = { styles [ 'responsible' ] }
368+ className = { classnames ( styles [ 'responsible' ] , 'no-print' ) }
369369 placeholder = { formatMessage ( { id : 'user.search-field-placeholder' } ) }
370370 options = { [ ...performerGroupDropdownOption , ...performerDropdownOption ] }
371371 value = { [ ...performerDropdownValue , ...performerGroupDropdownValue ] }
@@ -379,7 +379,7 @@ export function TaskCard({
379379 ) }
380380
381381 { viewMode !== ETaskCardViewMode . Guest && ! task . isReadOnlyViewer && (
382- < GuestController ref = { guestsControllerRef } taskId = { task . id } className = { styles [ 'guest-dropdown' ] } />
382+ < GuestController ref = { guestsControllerRef } taskId = { task . id } className = { classnames ( styles [ 'guest-dropdown' ] , 'no-print' ) } />
383383 ) }
384384 </ >
385385 ) ;
@@ -497,7 +497,7 @@ export function TaskCard({
497497 ) ;
498498
499499 return (
500- < div className = { styles [ 'buttons' ] } >
500+ < div className = { classnames ( styles [ 'buttons' ] , 'no-print' ) } >
501501 < div className = { styles [ 'buttons__complete' ] } >
502502 { isEmbeddedWorkflowsComplete ? (
503503 renderCompleteButton ( ! isEmbeddedWorkflowsComplete )
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ export const WorkflowLog = ({
222222 }
223223
224224 return (
225- < div className = { styles [ 'comment-field' ] } >
225+ < div className = { classnames ( styles [ 'comment-field' ] , 'no-print' ) } >
226226 < PopupCommentFieldContainer sendComment = { sendComment } taskId = { taskId } mentions = { mentions } />
227227 </ div >
228228 ) ;
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ export function WorkflowLogTaskComment({
158158 if ( currentUserId !== userId || workflowStatus === EWorkflowStatus . Finished ) return null ;
159159
160160 return (
161- < div className = { styles [ 'comment__actions' ] } >
161+ < div className = { classnames ( styles [ 'comment__actions' ] , 'no-print' ) } >
162162 { renderDeleteButton ( ) }
163163 { ! isDelete && (
164164 < button
@@ -327,7 +327,7 @@ export function WorkflowLogTaskComment({
327327 < Tooltip
328328 visible = { isShowTooltipEmoji }
329329 size = "auto"
330- containerClassName = { classnames ( styles [ 'comment__footer-item' ] , styles [ 'is-add-emoji' ] ) }
330+ containerClassName = { classnames ( styles [ 'comment__footer-item' ] , styles [ 'is-add-emoji' ] , 'no-print' ) }
331331 content = {
332332 isShowEmoji && (
333333 < Picker
Original file line number Diff line number Diff line change 55 flex-direction : column;
66 height : 100% ;
77}
8-
9- /* Print styles need !important to override global #pneumatic-frontend and framework CSS. */
10- /* stylelint-disable declaration-no-important */
11- @media print {
12- html ,
13- body {
14- overflow : visible !important ;
15- height : auto !important ;
16- }
17-
18- [id = 'pneumatic-frontend' ] {
19- overflow : visible !important ;
20- height : auto !important ;
21- }
22-
23- main .container-fluid .row {
24- display : flex !important ;
25- }
26-
27- * {
28- print-color-adjust : exact;
29- }
30- }
31- /* stylelint-enable declaration-no-important */
You can’t perform that action at this time.
0 commit comments