diff --git a/backend/controllers/download.go b/backend/controllers/download.go index bc6eb15..f7b907c 100644 --- a/backend/controllers/download.go +++ b/backend/controllers/download.go @@ -7,8 +7,8 @@ import ( "strings" "unicode" - "youtube-downloader-go/backend/models" - "youtube-downloader-go/backend/utils" + "YTGo/backend/models" + "YTGo/backend/utils" "github.com/wailsapp/wails/v2/pkg/runtime" ) @@ -86,4 +86,5 @@ func (a *App) DownloadVideo(videoInfo models.VideoInfo, opts models.DownloadOpti } return "Done downloading", nil + } diff --git a/backend/controllers/get.go b/backend/controllers/get.go index e3394dc..69f9719 100644 --- a/backend/controllers/get.go +++ b/backend/controllers/get.go @@ -6,8 +6,8 @@ import ( "net/url" "os/exec" - "youtube-downloader-go/backend/models" - "youtube-downloader-go/backend/utils" + "YTGo/backend/models" + "YTGo/backend/utils" ) func (a *App) GetVideoInfo(videoURL string) (models.VideoInfo, error) { diff --git a/frontend/src/components/VideoModal.svelte b/frontend/src/components/VideoModal.svelte index 4dd3e2c..6ac9c7a 100644 --- a/frontend/src/components/VideoModal.svelte +++ b/frontend/src/components/VideoModal.svelte @@ -2,6 +2,7 @@ import { onAccesibilityKeydown } from "../utils/accessibility.js"; import { DownloadVideo } from "../../wailsjs/go/controllers/App.js"; import "@fortawesome/fontawesome-free/css/all.min.css"; + import { preventDefault } from "svelte/legacy"; /** @type {{onClose: any, videoInfo: any}} */ let { onClose, videoInfo } = $props(); @@ -47,8 +48,7 @@ const audioOptions = audioExtOptions.map((ext) => ({ })); // Switch between video and audio tab and reset the selected option -function switchTab(event, tab) { - event.preventDefault(); +function switchTab(tab) { currentTab = tab; selectedOption = ""; // Reset the selected option when tab changes } @@ -160,14 +160,18 @@ function switchTab(event, tab) { } .tab { + background-color: var(--duo-bg-color); + color: var(--fg-color); cursor: pointer; padding: 0.5rem 1rem; - border-bottom: 2px solid transparent; + border: 0; + padding-bottom: 1em; + overflow: hidden; } .tab.active { + border-bottom: 2px solid transparent; border-color: var(--accent); - font-weight: bold; } @@ -175,24 +179,28 @@ function switchTab(event, tab) { class="modal" role="button" tabindex="0" - onclick={onClose} + onkeydown={onAccesibilityKeydown} >