Fixed Twitter Timeline on ACP index
authorAlexander Ebert <ebert@woltlab.com>
Thu, 7 Nov 2013 22:21:07 +0000 (23:21 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 7 Nov 2013 22:21:07 +0000 (23:21 +0100)
wcfsetup/install/files/acp/templates/index.tpl
wcfsetup/install/files/style/layout.less

index 6f49d2492e008bc67f3ed27b66cf5b8fbf0f8b3c..406fbbd65aaf530b4d71439640d04d25809c204e 100644 (file)
        
        {if ENABLE_WOLTLAB_NEWS}
                <div id="news" class="container containerPadding hidden tabMenuContent">
-                       {if $__wcf->language->languageCode == 'de'}
-                               <a class="twitter-timeline" href="https://twitter.com/woltlab_de" data-chrome="nofooter transparent" data-widget-id="339042086949093376">Tweets von @woltlab_de</a>
-                       {else}
-                               <a class="twitter-timeline" href="https://twitter.com/woltlab" data-chrome="nofooter transparent" data-widget-id="335166618281865217">Tweets by @woltlab</a>
-                       {/if}
-                       {literal}
-                               <script data-relocate="true">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
-                       {/literal}
+                       <div id="news-twitter-timeline">
+                               {if $__wcf->language->languageCode == 'de'}
+                                       <a class="twitter-timeline" href="https://twitter.com/woltlab_de" data-chrome="nofooter transparent" data-widget-id="339042086949093376">Tweets von @woltlab_de</a>
+                               {else}
+                                       <a class="twitter-timeline" href="https://twitter.com/woltlab" data-chrome="nofooter transparent" data-widget-id="335166618281865217">Tweets by @woltlab</a>
+                               {/if}
+                               {literal}
+                                       <script data-relocate="true">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+                               {/literal}
+                       </div>
                </div>
        {/if}
        
index 4495fc05ae5ae49c5a6280d90f3d6ec9f75780f8..eeae4aba306129d2ef5f2d66e88b97c44b82ee70 100644 (file)
@@ -2298,4 +2298,9 @@ see: http://beta.woltlab.com/index.php/Thread/3874-Kosmetik-Darstellungsfehler-I
 */
 .CodeMirror-linenumber {
        min-width: 30px !important;
-}
\ No newline at end of file
+}
+
+/* twitter timeline on ACP index */
+#news-twitter-timeline > iframe {
+       width: 100%;
+}