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

relations form vertical scroll #1351

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apis_core/relations/static/css/relations.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
#relationdialog {
border: 1px solid black;
border-radius: .3rem;
overflow: visible;
overflow-x: visible;
overflow-y: scroll;
padding: 0;
opacity: 1;
transform: scale(1);
Expand Down
9 changes: 9 additions & 0 deletions sample_project/forms.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django import forms

from apis_core.relations.forms import RelationForm


class LivesInForm(RelationForm):
# we add a big notes field to this relation, both to demonstrate how custom forms
# work in APIS, but also to test for an overflow in the form
notes = forms.CharField(widget=forms.Textarea(attrs={"rows": "70"}), required=False)
Loading