ElkArte Community

Elk Development => Theme development => Topic started by: ahrasis on January 15, 2015, 02:47:25 am

Title: Mobile - Resize Attachment Image
Post by: ahrasis on January 15, 2015, 02:47:25 am
I found that attachment image become too big when enlarge in the mobile view. How do we resize it (most probabbly by using css) so that it will only be as big as the screen size is? I am still checking on this and will update later.
Title: Re: Mobile - Resize Attachment Image
Post by: ahrasis on January 15, 2015, 03:09:28 am
I find that Attachments.subs.php is calling the following as the attachment image:
Code: [Select]
$scripturl . '?action=dlattach;topic=' . $topic . '.0;attach=' . $attachment['id_attach']


The attachment pop up page is also empty from any styling or division. The only thing it has it just body and img. How do I modify this so that it will always open wrapped in accordance with the browser size? Or is there any other better way to do this?
Title: Re: Mobile - Resize Attachment Image
Post by: radu81 on January 15, 2015, 04:47:22 am
not a real solution but with Fancybox the attachments and also images inserted with tag IMG are responsive.
Title: Re: Mobile - Resize Attachment Image
Post by: ahrasis on January 15, 2015, 05:21:29 am
I'll give a try then... ::)