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

Add option to add custom templates and fix screenshot cut off #540

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

gemmageee
Copy link

The screenshots that get taken are cut off at the fold. This fix takes the full web page, regardless of screen height.

We wanted an option to customise the results page. So added a gallery_template folder and changed the ruby file to point at this custom folder. Now anyone can copy the basic_template.erb and customise it, then save it in this folder.

… run Wraith on. We need the screenshot to show the full page. Remove the set height in the clipRect to default as auto height to solve this issue.
…ry.html page that shows all the screenshot results. By adding to the url path string we can pull the current local directory on the persons machine, and pull a custom erb file in a new gallery_template folder inside this repo itself, in templates.

# Specify your gem's dependencies in wraith.gemspec

gem 'wraith', :git => 'https://github.com/gemmageee/wraith.git', :branch => 'master'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need to be removed

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

Successfully merging this pull request may close these issues.

None yet

2 participants