fix(pdf): Solved PDF export extremely small margins issue #948#1008
fix(pdf): Solved PDF export extremely small margins issue #948#1008krahulshharmaa wants to merge 2 commits intoCrustack:mainfrom
Conversation
📝 WalkthroughWalkthroughThe PR adds inline CSS styling to the HTML output generated by Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 6/8 reviews remaining, refill in 12 minutes and 18 seconds.Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
app/src/main/java/com/philkes/notallyx/data/model/ModelExtensions.kt (1)
203-211: ⚡ Quick winUse
overflow-wrapfor reliable long-word wrapping in prints.In the added CSS, you set
word-wrap: break-word;(Line 210).word-wrapis legacy;overflow-wrapis the modern, widely supported equivalent for controlling wrapping in browsers/print engines.🛠️ Proposed change
- body { - font-family: sans-serif; - line-height: 1.5; - word-wrap: break-word; - } + body { + font-family: sans-serif; + line-height: 1.5; + word-wrap: break-word; + overflow-wrap: break-word; + }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@app/src/main/java/com/philkes/notallyx/data/model/ModelExtensions.kt` around lines 203 - 211, Replace the legacy CSS property by updating the CSS block that currently contains "word-wrap: break-word;" (inside the `@page/body` CSS snippet) to use the modern "overflow-wrap: break-word;" property instead; locate the "word-wrap" occurrence in ModelExtensions.kt and change it to "overflow-wrap" so long words wrap reliably in print.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@app/src/main/java/com/philkes/notallyx/data/model/ModelExtensions.kt`:
- Around line 203-211: Replace the legacy CSS property by updating the CSS block
that currently contains "word-wrap: break-word;" (inside the `@page/body` CSS
snippet) to use the modern "overflow-wrap: break-word;" property instead; locate
the "word-wrap" occurrence in ModelExtensions.kt and change it to
"overflow-wrap" so long words wrap reliably in print.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 8b12a0a2-b207-4556-b2ea-e8868a26ab00
📒 Files selected for processing (1)
app/src/main/java/com/philkes/notallyx/data/model/ModelExtensions.kt
PDF export-margin issue solved.
Summary by CodeRabbit