-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Show trix / rhino always_show variation #3263
Labels
Comments
FYI: we 80/20 fixed this withi this css, #sharing-is-caring ;) .trix-content.hidden {
display: block !important;
}
.trix-content.hidden {
clip-path: inset(0 0 calc(100% - 50px) 0);
-webkit-mask-image: linear-gradient(to bottom, black 30px, transparent 50px);
mask-image: linear-gradient(to bottom, black 30px, transparent 50px);
max-height: 50px;
min-height: 0px;
}
.trix-content:not(.hidden) {
clip-path: none;
-webkit-mask-image: none;
mask-image: none;
}
a[data-action="click->hidden-input#showContent"].hidden {
display: none !important;
} |
This issue has been marked as stale because there was no activity for the past 15 days. |
Yup! We should have a few junior folks that want to contribute to OSS soon so maybe we can get some help on it. Approach
Nice to have:
|
adrianthedev
added
Help wanted
We could use some help with this
Good first issue
Good for newcomers
labels
Oct 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature
Show a part of the content with a click to see more
See loom: https://www.loom.com/share/d95cfc272bb84e1797870265c9a710fb
to be discussed how we introduce this without creating regressions for users that really want to hide everything.
introduce an extra boolean?
partial_show
?Current workarounds
Define a custom partial for the show action -> copying the app/components/avo/fields/trix_field/show_component.html.erb and using our own styles?
or overwriting the
hidden
CSS class within this wrapper?The text was updated successfully, but these errors were encountered: