-
-
Notifications
You must be signed in to change notification settings - Fork 691
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
Limit text display in cells containing large amounts of text #330
Comments
This relates to #276 - I'm definitely convinced now that displaying a giant |
I think this makes sense for the HTML view (not for JSON or CSV). It could be controlled be a new config option, |
https://datasette-issue-330-demo-sbelwxttfn.now.sh/timezones-3cb9f64/timezones But https://datasette-issue-330-demo-sbelwxttfn.now.sh/timezones-3cb9f64/timezones/1 displays the full blob. |
The default preview of a database shows all columns (is the row count limited?) which is fine in many cases but can take a long time to load / offer a large overhead if the table is a SpatiaLite table containing geometry columns that include large shapefiles.
Would it make sense to have a setting that can limit the amount of text displayed in any given cell in the table preview, or (less useful?) suppress (with notification) the display of overlong columns unless enabled by the user?
An issue then arises if a user does want to see all the text in a cell:
(I haven't checked but what if a column contains e.g. raw image data? Does this display as raw data? Or can this be rendered in a context aware way as an image preview? I guess a custom template would be one way to do that?)
The text was updated successfully, but these errors were encountered: