# HG changeset patch # User souliane # Date 1392302074 -3600 # Node ID df743589bb8cb53bd2acfb219490cb092db4eec6 # Parent 2b5503392fbdd2c2fb37c0100e1b3fb8663eedd9 browser_side: microblog images have a fixed CSS "max-width" and they are clickable diff -r 2b5503392fbd -r df743589bb8c browser_side/base_panels.py --- a/browser_side/base_panels.py Thu Feb 13 15:32:59 2014 +0100 +++ b/browser_side/base_panels.py Thu Feb 13 15:34:34 2014 +0100 @@ -37,7 +37,7 @@ from tools import html_sanitize, html_strip, inlineRoot -from sat_frontends.tools.strings import addURLToText +from sat_frontends.tools.strings import addURLToText, addURLToImage from sat.core.i18n import _ @@ -461,7 +461,8 @@ self.removeKeyboardListener(self) def setDisplayContent(self): - self.setHTML(addURLToText(self._original_content['text']) if self.__enhance_display else self._original_content['text']) + text = addURLToImage(self._original_content['text']) + self.setHTML(addURLToText(text) if self.__enhance_display else text) def setFocus(self, focus): if focus: diff -r 2b5503392fbd -r df743589bb8c public/libervia.css --- a/public/libervia.css Thu Feb 13 15:32:59 2014 +0100 +++ b/public/libervia.css Thu Feb 13 15:34:34 2014 +0100 @@ -69,9 +69,9 @@ .bubble p { margin: 0.4em 0em; } - .bubble img { - # if you set max-width, check that the rich text editor icons are still well displayed + /* /!\ setting a max-width percentage value affects the toolbar icons */ + max-width: 600px; } /* styles for displaying rich text - END */