[ckan-dev] Text file preview

Dominik Moritz dominik.moritz at okfn.org
Mon Sep 22 21:02:54 UTC 2014


You could limit the height in the css using max-height and overflow-y: scroll. It probably makes sense to add this to CKAN core, though. 

On Sep 22, 2014, at 0:24, Aaron McGlinchy <McGlinchyA at landcareresearch.co.nz> wrote:

> Hi,
>    If you upload a txt file, is it possible to specify how many lines of the file are displayed in the preview?  If the txt file is very long, then it seems the entire file is shown and you have to scroll the 'full window' down to see the additional info/license ...
> 
> The text preview does display a left/right scroll bar so if the file is very wide you scroll within the preview to see the right hand side, but the same is not true for a vertical scroll bar (ie the only vertical scroll bar is the one controlling the entire page).
> 
> I hope this makes sense.
> 
> Thanks
> Aaron
> 
> ________________________________
> 
> Please consider the environment before printing this email
> Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails.
> The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140922/2479c8cc/attachment-0003.sig>


More information about the ckan-dev mailing list