From 9281ad4a3c0810e35d0707c56984b479511d23b4 Mon Sep 17 00:00:00 2001 From: TrickyPR <23250792+trickypr@users.noreply.github.com> Date: Mon, 18 Mar 2024 21:57:20 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Layout=20completions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/browser/components/UrlBox.svelte | 87 +++++++++++++++---- apps/content/src/browser/components/urlBox.js | 1 + 2 files changed, 73 insertions(+), 15 deletions(-) diff --git a/apps/content/src/browser/components/UrlBox.svelte b/apps/content/src/browser/components/UrlBox.svelte index e66d229..0067eb2 100644 --- a/apps/content/src/browser/components/UrlBox.svelte +++ b/apps/content/src/browser/components/UrlBox.svelte @@ -3,13 +3,12 @@ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
- inputFocused = true} on:blur={() => inputFocused = false} /> +
+ +
+ (inputFocused = true)} + on:blur={() => (inputFocused = false)} + /> -
diff --git a/apps/content/src/browser/components/urlBox.js b/apps/content/src/browser/components/urlBox.js index b025f19..460da76 100644 --- a/apps/content/src/browser/components/urlBox.js +++ b/apps/content/src/browser/components/urlBox.js @@ -129,6 +129,7 @@ export function performCursedUrlStyling(inputElement) { startIndex = currentIndex } + // Consume path if (!inputElement.value.substring(startIndex).includes('/')) { return }