From 81c5a00ecf7c63c0f3db04bccfa41a487020b158 Mon Sep 17 00:00:00 2001 From: nipos Date: Tue, 27 Mar 2018 19:26:03 +0200 Subject: [PATCH] Fixed who to follow,improved settings menu and search bar --- README.md | 3 ++- assets/css/style.css | 19 ++++++++++++++++--- assets/js/halcyon/halcyonFunctions.js | 26 ++++++++++++++++++++------ assets/js/halcyon/halcyonUI.js | 8 +++++--- version.txt | 2 +- 5 files changed, 44 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index ae02c46..10737fa 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,14 @@ A Mastodon web client that looks like Twitter ## Blog +- Release of Version 1.0.3 - "Who to follow" doesn't show people you already follow anymore and design of preferences and search bar is now much better - Release of Version 1.0.2 - Fixed a Firefox-only bug and some wrong links, added version info and an annoying cookie notice (sorry, but that's EU law) - Release of Version 1.0.1 - Two bugfixes - [Release of Version 1.0.0](http://nikisoft.myblog.de/nikisoft/art/11264555/The-first-new-Halcyon-release-is-on-Github) ## Instances These instances are publicly accessible and usable by everyone, no matter which Mastodon instance you use. -- https://halcyon.toromino.de - 1.0.2 +- https://halcyon.toromino.de - 1.0.3 - https://social.dev-wiki.de - 1.0.1 - https://halcyon.cybre.space - Outdated diff --git a/assets/css/style.css b/assets/css/style.css index d3a834c..359485b 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1299,17 +1299,28 @@ margin-top: 0px; transition: 0.13s ease-out; } .side_widget form.pulldown_form.view { -height: 240px; +height: auto; opacity: 1; margin-top: 16px; transition: 0.13s ease-out; } .side_widget select, .side_widget input { margin: 8px 0 16px; +padding-left:5px; width: 100%; font-size: 14px; color: #66757F; box-sizing: border-box; +height:30px; +border:1px solid #E8EEF1; +border-radius:2px; +background-color:#F5F8FA; +outline:0; +} +.side_widget select:active, .side_widget input:focus { +outline:0; +border:1px solid #189EFC; +background-color:transparent; } .side_widget .account_box { display: flex; @@ -1540,11 +1551,13 @@ border-radius: 16px; border: 1px solid #E8EEF1; background-color: #F5F8FA; height: 100%; -transition: 0.15s ease-out;; +transition: 0.15s ease-out; } #header .header_nav_wrap .header_right_box .search_form .search_form_input:focus { background-color: transparent; -transition: 0.15s ease-out;; +transition: 0.15s ease-out; +outline:0; +border:2px solid #189EFC; } #header .header_nav_wrap .header_right_box .search_form .search_form_submit { display: block; diff --git a/assets/js/halcyon/halcyonFunctions.js b/assets/js/halcyon/halcyonFunctions.js index 9311548..7df60bb 100644 --- a/assets/js/halcyon/halcyonFunctions.js +++ b/assets/js/halcyon/halcyonFunctions.js @@ -58,27 +58,27 @@ var posted_time_original = posted_time, posted_time = getConversionedDate(null, posted_time_original).getTime(), elapsedTime = Math.ceil((current_time-posted_time)/1000); if (elapsedTime < 60) { -const datetime ="・" + elapsedTime + "s"; +const datetime ="・" + elapsedTime + "s"; return datetime; } else if (elapsedTime < 120) { -const datetime ="・1m"; +const datetime ="・1m"; return datetime; } else if (elapsedTime < (60*60)) { -const datetime ="・" + (Math.floor(elapsedTime / 60) < 10 ? " " : "") + Math.floor(elapsedTime / 60) + "m"; +const datetime ="・" + (Math.floor(elapsedTime / 60) < 10 ? " " : "") + Math.floor(elapsedTime / 60) + "m"; return datetime; } else if (elapsedTime < (120*60)) { -const datetime ="・1h"; +const datetime ="・1h"; return datetime; } else if (elapsedTime < (24*60*60)) { -const datetime ="・" + (Math.floor(elapsedTime / 3600) < 10 ? " " : "") + Math.floor(elapsedTime / 3600) + "h"; +const datetime ="・" + (Math.floor(elapsedTime / 3600) < 10 ? " " : "") + Math.floor(elapsedTime / 3600) + "h"; return datetime; } else { -const datetime ="・" + calendar[posted_time_original.getMonth()] + " " + posted_time_original.getDate(); +const datetime ="・" + calendar[posted_time_original.getMonth()] + " " + posted_time_original.getDate(); return datetime; } } @@ -150,6 +150,20 @@ current_statuses_count_link= localStorage.getItem("current_statuses_count_link") current_following_count_link = localStorage.getItem("current_following_count_link"); current_followers_count_link = localStorage.getItem("current_followers_count_link"); current_favourites_link= localStorage.getItem("current_favourites_link"); +if(!localStorage.getItem("current_following_ids")) { +current_following_ids = new Array(); +api.get("accounts/"+current_id+"/following",function(data) { +followings = new Array(); +for(i=0;i