diff --git a/README.md b/README.md index 7491a8c..e185ef2 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ We moved our instances list to a wiki page: https://notabug.org/halcyon-suite/ha or read our new documentation pages to install it manually: https://www.halcyon.social/documentation.php?page=install ## Blog +- Release of Version 2.2.4 - Easily switch between pictures in overlay,show pictures in full height in timeline,duplicated threads removed,many smaller bugfixes - Release of Version 2.2.3 - Fixed login with Pleroma,fixed compatibility with Pawoo (older Mastodon),added support for prefers-color-scheme,some more fixes - Our new information website [halcyon.social](https://www.halcyon.social) came online - Release of Version 2.2.2 - Fix autocomplete,fix double scrollbars in overlay,add emojis at cursor position,confirm when closing compose window,add czech translation diff --git a/assets/css/style.css b/assets/css/style.css index 8bcdf78..ad401b0 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -872,6 +872,10 @@ position: relative; box-sizing: border-box; border: 1px solid #DCDFE1; } +.media_views.media_full_height { +height:auto; +min-height:336px; +} .media_views .media_attachment { overflow: hidden; width: 100%; @@ -955,6 +959,21 @@ height: calc( 100% / 3 ); .media_views[media_length="4"] .media_attachments_right .media_attachment[mediacount="3"] { padding-bottom: 0; } +.media_backward,.media_forward { +color:#CCCCCC; +position:absolute; +top:50%; +cursor:pointer; +} +.media_backward { +left:-50px; +} +.media_forward { +right:-50px; +} +.media_backward:hover,.media_forward:hover { +color:#FFFFFF; +} .timeline .notice_entry { padding: 10px 12px 10px 70px; font-size: 14px; @@ -2258,7 +2277,6 @@ padding: 12px; .toot_entry.descendants_status .toot_entry_body::after { content: ""; display: block; -border: 2px solid #76BFEC; position: absolute; border-radius: 2px; position: absolute; @@ -2266,6 +2284,10 @@ left: 62px; height: calc(100% - 57px); top: 68px; } +.toot_entry.ancestors_status .toot_entry_body::after, +.toot_entry.descendants_status.direct_answer .toot_entry_body::after { +border: 2px solid #76BFEC; +} .toot_entry.ancestors_status.default_padding .toot_entry_body::after, .toot_entry.descendants_status.default_padding .toot_entry_body::after { left: 35px; diff --git a/assets/js/halcyon/halcyonSettings.js b/assets/js/halcyon/halcyonSettings.js index 227253d..c8e7479 100644 --- a/assets/js/halcyon/halcyonSettings.js +++ b/assets/js/halcyon/halcyonSettings.js @@ -207,6 +207,12 @@ $("#setting_show_content_warning")[0].checked = true; if(localStorage.setting_show_nsfw == "true") { $("#setting_show_nsfw")[0].checked = true; } +if(localStorage.setting_full_height == "true") { +$("#setting_full_height")[0].checked = true; +} +if(localStorage.setting_thread_view == "true") { +$("#setting_thread_view")[0].checked = true; +} }); $(document).on('change',".post_streaming_wrap input[name='post_streaming']:checked", function(e) { localStorage.setItem("setting_post_stream", $(this).val()); @@ -330,6 +336,26 @@ localStorage.setItem("setting_show_nsfw","false"); putMessage(__("NSFW content hidden")); } }); +$("#setting_full_height").change(function() { +if(this.checked) { +localStorage.setItem("setting_full_height","true"); +putMessage(__("Pictures shown in full height")); +} +else { +localStorage.setItem("setting_full_height","false"); +putMessage(__("Pictures shown in default height")); +} +}); +$("#setting_thread_view").change(function() { +if(this.checked) { +localStorage.setItem("setting_thread_view","true"); +putMessage(__("Threads shown in thread view")); +} +else { +localStorage.setItem("setting_thread_view","false"); +putMessage(__("Threads shown in chronological order")); +} +}); } else if(window.location.pathname == "/settings/filters") { $('#js-settings_nav_filters').toggleClass('view'); diff --git a/assets/js/halcyon/halcyonTemplates.js b/assets/js/halcyon/halcyonTemplates.js index cfc3045..d04eac6 100644 --- a/assets/js/halcyon/halcyonTemplates.js +++ b/assets/js/halcyon/halcyonTemplates.js @@ -1,18 +1,24 @@ function mediaattachments_template(status) { let media_views = ""; var border = ""; +var mvfullheight = ""; +var dsplength = status.media_attachments.length; if(status.media_attachments[0].remote_url != null) { status.media_attachments[0].url = status.media_attachments[0].remote_url; } if(status.media_attachments[0].type === "video" && localStorage.setting_play_video != "false") border = ' style="border:0;border-radius:0"'; +if(localStorage.setting_full_height == "true") { +mvfullheight = " media_full_height"; +dsplength = "1"; +} if(status.media_attachments[0].url === "/files/original/missing.png") { return ""; } else if(!status.sensitive || localStorage.setting_show_nsfw == "true") { -media_views = `