-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Image scaling in the tables #5039
Comments
Hello, Thank you for reporting this issue, we will look into it eventually. |
Hi, I think I have found workaround which will work for me. It is mainly related to table properties feature, accesible in editor and then saved to source code, see the dialog below For simplicity I investigated "width" parameter which accept two types of input:
As far as I understood, not only when width field left empty elab will use If I want to avod smart scaling with percentage parameters I simply have to use px definitions for the tables, which cannot be fitted 100% to the screen. In the last figure I demonstrate how width parameter works for thin window so the solution would be to calculate and inpur proper values in table properties |
I have another perspective when I was looking at existing entries, which became unreadable. What I found in the source code is many lines similar to this
I have played with source code of existing entries as well, for me it worked nicely to use regexp for the source code in notepad++
and similar for
this way we remove all the hardcoded percentages and px for heights and widths of the individual cells. There are also values for the tables itself, which can be located in source code as after such processing entry looks nice in view mode as well, as long as noone tries to update or scale them |
@NicolasCARPi |
Detailed description of the problem
We have been using elabFTW for some time and for many of our experiments use combination of png-figures oragnized in tables.
After one of the updates table starts to scale figures randomly, making some of the earlier experiments unreadable any longer, as 400 px image shrinked down to 18px for some reason.
The behaviour is reproduced, I have made a new experiment and uploaded three images, free standing and in the table. They have the same size in the edit mode
but table is scaled in the view mode
the scaling appears random throughout our older experiments as well
Expected Behavior
I expect that tables keep the size of original png files as I see them in Edit mode
Steps to reproduce the behavior
What eLabFTW version are you using? Visible in bottom right of a page.
Powered by eLabFTW 5.0.4
Do you have any idea what may have caused this?
No response
Do you have an idea how to solve the issue?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: