-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
enable/disable passage link-connectors for better performance and clear view #1451
Comments
@flarack |
@greyelf It is a simple embed: {embed passage: 'global.header'} The header is mainly used as minimal interface, the footer as "menu" |
@flarack If this is the case then you may need to report this performance related issue on Chapbook's repository so its Developer can;
|
A couple possible workarounds:
.story-edit-route .link-connectors {
display: none;
} |
But then you get no syntax highlighting inside the passage. I'd think the CSS route would be better. Another option would be to add your own custom insert which is just a copy of embed with a different name, so that it won't create arrows, e.g. engine.extend('1.0.0', () => {
config.template.inserts = [{
match: /^silent-embed\s+passage(\s+named)?/i,
render(passage) {
return mainRender(passageNamed(passage).source);
}
}, ...config.template.inserts];
}); |
Is your feature request related to a problem? Please describe.
The acutal story I'm working on uses chapbook and references a global header and footer in every passage. Due to automated generation of visible passage link-connectors in the ui, the performance is getting worse with each passage to be added.
Describe the solution you'd like.
A simple solution is to add options in the settings panel to make passage link-connectors visible / invisible. Maybe even two options for:
Describe alternatives you've considered.
Atm I delete the class="link-connectors" each time I open twine, but it's a clunky workaround. Maybe there is a solution using the user.css from twine 2.70, but I don't know how.
Additional context on this suggestion.
No response
Presubmission checklist
The text was updated successfully, but these errors were encountered: