Skip to content

Commit

Permalink
style(print): only give bottom border to OpenFeedbacks when printing …
Browse files Browse the repository at this point in the history
…-refs: #1354
  • Loading branch information
HRemonen committed Sep 11, 2024
1 parent b70ab4b commit 32cd402
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/client/components/OpenFeedback/OpenFeedback.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const styles = {
width: '100%',
alignItems: 'start',
pageBreakAfter: 'auto',
borderBottom: `1px solid ${grey[300]}`,
...boxPrintStyle,
},
hiddenListItem: theme => ({
Expand Down
3 changes: 0 additions & 3 deletions src/client/util/printStyle.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { grey } from '@mui/material/colors'

export const boxPrintStyle = {
// Improve printing
'@media print': {
boxShadow: 'none',
backgroundColor: 'transparent',
p: '0',
borderBottom: `1px solid ${grey[300]}`,
borderRadius: 0,
},
}

0 comments on commit 32cd402

Please sign in to comment.