diff --git a/app/app.vue b/app/app.vue index 3203888..2533760 100644 --- a/app/app.vue +++ b/app/app.vue @@ -11,7 +11,7 @@ \ No newline at end of file diff --git a/app/components/common/card.vue b/app/components/common/card.vue index d860091..5d8cf64 100644 --- a/app/components/common/card.vue +++ b/app/components/common/card.vue @@ -12,7 +12,7 @@ \ No newline at end of file diff --git a/app/components/forms/auth/registration-form.vue b/app/components/forms/auth/registration-form.vue index 6e95993..a4a98ac 100644 --- a/app/components/forms/auth/registration-form.vue +++ b/app/components/forms/auth/registration-form.vue @@ -60,7 +60,7 @@ const handleRegistration = async () => { } .error-message { - color: var(--color-error-text, red); + color: red; text-align: center; } diff --git a/app/components/panels/movie-details.vue b/app/components/panels/movie-details.vue index b22d038..6396673 100644 --- a/app/components/panels/movie-details.vue +++ b/app/components/panels/movie-details.vue @@ -79,6 +79,7 @@ dt { display: flex; flex-direction: column; padding: 2rem; + justify-content: center; max-width: 40rem; margin: 0 auto; } diff --git a/app/components/panels/movie-search.vue b/app/components/panels/movie-search.vue index 90c9210..a42561c 100644 --- a/app/components/panels/movie-search.vue +++ b/app/components/panels/movie-search.vue @@ -2,8 +2,6 @@ import type {MovieSearchResult} from "~/types/movie-search-results"; import type {MovieList} from "~/types/movie-list"; import type {ResourceResponse} from "@/types/api"; -import InputAction from "~/components/common/input-action.vue"; -import ButtonAction from "~/components/common/button-action.vue"; const emit = defineEmits(['add-movie']); const props = defineProps<{ @@ -11,18 +9,15 @@ const props = defineProps<{ }>() const searchQuery = ref(""); -const errorMessage = ref(""); const movies = ref([]); const searchMovies = () => { $api>(`/api/movies/search/${searchQuery.value}`, { method: "GET" }).then((response) => { - errorMessage.value = ""; movies.value = response.data }).catch((error) => { - if (error.response.status === 404) - errorMessage.value = "No movies found" + alert(error.message) }); } @@ -42,27 +37,23 @@ const addMovieToList = (movie: MovieSearchResult) => { \ No newline at end of file diff --git a/app/components/slideout-panel.vue b/app/components/slideout-panel.vue index 9ab40eb..105f2e5 100644 --- a/app/components/slideout-panel.vue +++ b/app/components/slideout-panel.vue @@ -37,11 +37,11 @@ const emit = defineEmits<{ right: 0; bottom: 0; width: 40%; - background: var(--panel-background, #fff); + background: var(--color-surface, #fff); z-index: 101; overflow-y: auto; + padding: 1rem; box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2); - padding: 3rem; } .close-button {