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

Weird with text and screenshots #246

Closed
suljov opened this issue Apr 30, 2024 · 1 comment
Closed

Weird with text and screenshots #246

suljov opened this issue Apr 30, 2024 · 1 comment

Comments

@suljov
Copy link

suljov commented Apr 30, 2024

Hello, while testing doing a report with a CTF etc i saw some of my text/"code snipets" and screenshots dont really look like it should do

examples

1:
image

2:
image

3:
image

the screenshots are not centered and dont really fit etc. some code snipets are long and suddenly goes outside the report.

@MWedl
Copy link
Contributor

MWedl commented May 2, 2024

Hi,
text and image overflow can be configured with CSS rules in the design.

What design are you using? Is it based on an example design or a custom one?

If it is a custom design, we recommend to add @import "/assets/global/base.css"; at the top of your design's CSS code. This line imports some base styles that provide useful default behavior, which you might want to use in most report designs. The base styles also contain rules to prevent images and code blocks from overflowing pages.

If you do not want to import all base styles you can selectively copy some rules from https://github.com/Syslifters/sysreptor/blob/main/api/src/reportcreator_api/tasks/rendering/global_assets/base-text.scss to your design's CSS code. However, we recommend to include the whole base styles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants