From 3264cab247e5aa780bb66a1b2db8328153bd1856 Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 26 Mar 2023 10:19:33 +0600 Subject: [PATCH] fixed text selection on ios --- src/front/cobalt.css | 10 +++++++++- src/modules/changelog/changelog.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/front/cobalt.css b/src/front/cobalt.css index dc7015e..83a6e20 100644 --- a/src/front/cobalt.css +++ b/src/front/cobalt.css @@ -53,9 +53,10 @@ body { margin: 0; background: var(--background); color: var(--accent); + -webkit-tap-highlight-color: var(--transparent); font-family: var(--font-mono); user-select: none; - -webkit-tap-highlight-color: var(--transparent); + -webkit-user-select: none; overflow: hidden; -ms-overflow-style: none; scrollbar-width: none; @@ -64,6 +65,7 @@ a { color: var(--accent); text-decoration: none; user-select: none; + -webkit-user-select: none; } ::placeholder { color: var(--accent-unhover-2); @@ -281,6 +283,7 @@ input[type="checkbox"] { gap: 0.3rem; margin-top: 0.5rem; user-select: none; + -webkit-user-select: none; } ::-moz-selection { background-color: var(--accent); @@ -357,6 +360,7 @@ input[type="checkbox"] { float: left; line-height: var(--line-height); user-select: text; + -webkit-user-select: text; } #popup-title { font-size: 1.5rem; @@ -506,6 +510,7 @@ input[type="checkbox"] { } .text-to-copy { user-select: text; + -webkit-user-select: text; border: var(--border-15); padding: var(--padding-1); overflow: auto; @@ -539,6 +544,7 @@ input[type="checkbox"] { .emoji { margin-right: 0.4rem; user-select: none; + -webkit-user-select: none; } .picker-image { object-fit: cover; @@ -596,6 +602,7 @@ input[type="checkbox"] { .collapse-list { background: var(--accent-press); user-select: none; + -webkit-user-select: none; } .collapse-header { padding: var(--padding-1); @@ -623,6 +630,7 @@ input[type="checkbox"] { display: none; padding: var(--padding-1); user-select: text; + -webkit-user-select: text; } .expanded .collapse-body { display: block diff --git a/src/modules/changelog/changelog.json b/src/modules/changelog/changelog.json index 3145558..c6b5103 100644 --- a/src/modules/changelog/changelog.json +++ b/src/modules/changelog/changelog.json @@ -3,7 +3,7 @@ "version": "5.2", "title": "fastest one in the game", "banner": "catspeed.webp", - "content": "hey, notice anything different? well, at very least the page loaded way faster! this update includes many improvements and fixes, but also some new features.\n\ntl;dr:\n*; twitter retweet links are now supported.\n*; all vimeo videos should now be possible to download.\n*; you now can download audio from vimeo.\n*; it's now possible to pick between preferred vimeo download method in settings.\n*; fixed issues related to tiktok, twitter, twitter spaces, and vimeo downloads.\n*; overall cobalt performance should be MUCH better.\n\nservice improvements:\n*; added support for twitter retweet links. now all kinds of tweet links are supported.\n*; fixed the issue related to periods in tiktok usernames (#96).\n*; fixed twitter spaces downloads.\n*; added support for audio downloads from vimeo.\n*; added ability to choose between \"progressive\" and \"dash\" vimeo downloads. go to settings > video to pick your preference.\n*; fixed the issue related to vimeo quality picking.\n*; fixed the issue when vimeo module wouldn't show appropriate errors and instead would fallback to default ones.\n*; improved audio only downloads for some edge cases.\n*; (hopefully) better youtube reliability.\n*; temporarily disabled douyin support due to api endpoint cut off.\n\ninterface improvements:\n*; merged clipboard and mode switcher rows into one for mobile view. please share your thoughts on it.\n*; new custom-made clipboard icon. now it clearly indicates what it does.\n*; improved english and russian localization. both are way more direct and less bloaty.\n*; frontend page is now rendered once and is cached on disk instead of being rendered every time someone requests a page. this greatly improves page loading speeds and further reduces strain put on the server.\n*; frontend page is now minimized just like js and css files. this should minimize traffic wasted on loading the page, along with minor loading speed improvement.\n*; fixed button press animations for safari on ios.\n*; frontend platform is now marked in settings: p is for pc; m is for mobile; i is for ios. this is done for possible future debugging and issue-solving.\n*; better error messaging.\n\ninternal improvements:\n*; better rate limiting, there should be way less cases of accidental limits.\n*; added support for m3u8 playlists. this will be useful for future additions, and is currently used by vimeo module.\n*; added support for \"chop\" stream format for vimeo downloads.\n*; fixed vk user id extraction. i assumed the - in url was a separator, but it's actually a part of id.\n*; completely reworked the vimeo module. it's much cleaner and better performant now.\n*; minor clean ups across the board.\n\nnot really related to this update, but thank you for 40k monthly users! i really appreciate that you're still here, because that means i'm doing some things right :D" + "content": "hey, notice anything different? well, at very least the page loaded way faster! this update includes many improvements and fixes, but also some new features.\n\ntl;dr:\n*; twitter retweet links are now supported.\n*; all vimeo videos should now be possible to download.\n*; you now can download audio from vimeo.\n*; it's now possible to pick between preferred vimeo download method in settings.\n*; fixed issues related to tiktok, twitter, twitter spaces, and vimeo downloads.\n*; overall cobalt performance should be MUCH better.\n\nservice improvements:\n*; added support for twitter retweet links. now all kinds of tweet links are supported.\n*; fixed the issue related to periods in tiktok usernames (#96).\n*; fixed twitter spaces downloads.\n*; added support for audio downloads from vimeo.\n*; added ability to choose between \"progressive\" and \"dash\" vimeo downloads. go to settings > video to pick your preference.\n*; fixed the issue related to vimeo quality picking.\n*; fixed the issue when vimeo module wouldn't show appropriate errors and instead would fallback to default ones.\n*; improved audio only downloads for some edge cases.\n*; (hopefully) better youtube reliability.\n*; temporarily disabled douyin support due to api endpoint cut off.\n\ninterface improvements:\n*; merged clipboard and mode switcher rows into one for mobile view. please share your thoughts on it.\n*; new custom-made clipboard icon. now it clearly indicates what it does.\n*; improved english and russian localization. both are way more direct and less bloaty.\n*; frontend page is now rendered once and is cached on disk instead of being rendered every time someone requests a page. this greatly improves page loading speeds and further reduces strain put on the server.\n*; frontend page is now minimized just like js and css files. this should minimize traffic wasted on loading the page, along with minor loading speed improvement.\n*; fixed button press animations for safari on ios.\n*; fixed text selection on ios. previously you could select text or images anywhere, but now they're selectable in limited places, just like on other platforms.\n*; frontend platform is now marked in settings: p is for pc; m is for mobile; i is for ios. this is done for possible future debugging and issue-solving.\n*; better error messaging.\n\ninternal improvements:\n*; better rate limiting, there should be way less cases of accidental limits.\n*; added support for m3u8 playlists. this will be useful for future additions, and is currently used by vimeo module.\n*; added support for \"chop\" stream format for vimeo downloads.\n*; fixed vk user id extraction. i assumed the - in url was a separator, but it's actually a part of id.\n*; completely reworked the vimeo module. it's much cleaner and better performant now.\n*; minor clean ups across the board.\n\nnot really related to this update, but thank you for 40k monthly users! i really appreciate that you're still here, because that means i'm doing some things right :D" }, "history": [{ "version": "5.1",