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

Long TabularInline hides right toolbox #223

Closed
sliwowitz opened this issue Apr 18, 2014 · 3 comments
Closed

Long TabularInline hides right toolbox #223

sliwowitz opened this issue Apr 18, 2014 · 3 comments

Comments

@sliwowitz
Copy link

If I have a simple model with not many fields and a TabularInline which contains a lot of long fields, the TabularInline will overlap the toolbox on the right side mkaing the toolbox unusable.

django-suit-vopruz

(maybe other admin classes might exhibit this behavior as well, I just tried with TabularInline)

@darklow
Copy link
Owner

darklow commented Apr 18, 2014

Unfortunately Bootstrap v2 have default fixed width for inputs.
See here how you can change the width of input fields: #58

@darklow darklow closed this as completed Apr 18, 2014
@sliwowitz
Copy link
Author

Thanks for the reply. Resizing the fields will work in this particular example, but it really doesn't solve the problem - what if I need more fields in the table? Or what if the user has a lower screen resolution?

It would be better if it was possible to avoid the situation when the right box is blocked in some more generic way.

I was thinking - 'clear: right' on the inline would leave a lot of useless empty space on the page, a separate horizontal scrollbar just for the table would probably uncomfortable to use.

Maybe some javascript to bring the whole box to top on mouse hover (don't know what a tablet would do in that case)?

@darklow
Copy link
Owner

darklow commented Apr 22, 2014

What about making your inputs fluid by adding:

.inline-related .table td .vTextField { width: 100%; }

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

2 participants