]> git.wh0rd.org Git - tt-rss.git/commitdiff
edit feed: smaller buttons for icon upload; allow uploading larger favicons
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 8 Oct 2014 12:38:03 +0000 (16:38 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 8 Oct 2014 12:38:03 +0000 (16:38 +0400)
classes/pref/feeds.php
css/dijit.css

index 43b474278d66cad1f25e2416d0004e4fd02a59ff..d70c1a26add83d7d2e88751c58b4d24946a4e8cc 100644 (file)
@@ -495,7 +495,7 @@ class Pref_Feeds extends Handler_Protected {
                $feed_id = $this->dbh->escape_string($_REQUEST["feed_id"]);
 
                if (is_file($icon_file) && $feed_id) {
-                       if (filesize($icon_file) < 20000) {
+                       if (filesize($icon_file) < 65535) {
 
                                $result = $this->dbh->query("SELECT id FROM ttrss_feeds
                                        WHERE id = '$feed_id' AND owner_uid = ". $_SESSION["uid"]);
@@ -738,9 +738,9 @@ class Pref_Feeds extends Handler_Protected {
                        <input type=\"hidden\" name=\"op\" value=\"pref-feeds\">
                        <input type=\"hidden\" name=\"feed_id\" value=\"$feed_id\">
                        <input type=\"hidden\" name=\"method\" value=\"uploadicon\">
-                       <button dojoType=\"dijit.form.Button\" onclick=\"return uploadFeedIcon();\"
+                       <button class=\"small\" dojoType=\"dijit.form.Button\" onclick=\"return uploadFeedIcon();\"
                                type=\"submit\">".__('Replace')."</button>
-                       <button dojoType=\"dijit.form.Button\" onclick=\"return removeFeedIcon($feed_id);\"
+                       <button class=\"small\" dojoType=\"dijit.form.Button\" onclick=\"return removeFeedIcon($feed_id);\"
                                type=\"submit\">".__('Remove')."</button>
                        </form>";
 
index bd51929a7792aeb139bd924f272ffd598188a357..eb4f767dbf0db7d9343b9e9c03a32359be4503d1 100644 (file)
@@ -346,6 +346,10 @@ button[disabled],
        line-height : 20px;
 }
 
+.claro .dijitButton.small .dijitButtonText {
+       font-size : 11px;
+}
+
 .claro .dijitMenu {
        border-color : #ccc;
 }