From 4a1d122c8758c61955ca8344d6c1017ef80bc62e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 8 Oct 2014 16:38:03 +0400 Subject: [PATCH] edit feed: smaller buttons for icon upload; allow uploading larger favicons --- classes/pref/feeds.php | 6 +++--- css/dijit.css | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 43b47427..d70c1a26 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -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 { - - "; diff --git a/css/dijit.css b/css/dijit.css index bd51929a..eb4f767d 100644 --- a/css/dijit.css +++ b/css/dijit.css @@ -346,6 +346,10 @@ button[disabled], line-height : 20px; } +.claro .dijitButton.small .dijitButtonText { + font-size : 11px; +} + .claro .dijitMenu { border-color : #ccc; } -- 2.39.5