Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Set the standalone search bar height in the SearchBar component (#1521)
Olga Bulat19e4436207bc
diff --git a/src/components/VHeader/VSearchBar/VSearchBar.vue b/src/components/VHeader/VSearchBar/VSearchBar.vueindex 0dec7a19f..bac130d56 100644--- a/src/components/VHeader/VSearchBar/VSearchBar.vue+++ b/src/components/VHeader/VSearchBar/VSearchBar.vue@@ -1,6 +1,7 @@<template><formclass="search-bar group flex flex-row items-center bg-white rounded-sm"+ :class="{ 'h-[57px] md:h-[69px]': size === 'standalone' }"@submit.prevent="handleSearch"><VInputFielddiff --git a/src/locales/po-files/openverse.pot b/src/locales/po-files/openverse.potindex 709690314..b92e72088 100644--- a/src/locales/po-files/openverse.pot+++ b/src/locales/po-files/openverse.pot@@ -4,7 +4,7 @@ msgid ""msgstr """Project-Id-Version: Openverse \n""Report-Msgid-Bugs-To: https://github.com/wordpress/openverse/issues \n"-"POT-Creation-Date: 2022-06-15T20:45:14+00:00\n"+"POT-Creation-Date: 2022-06-16T13:55:29+00:00\n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=UTF-8\n""Content-Transfer-Encoding: 8bit\n"@@ -236,7 +236,7 @@ msgid "Search"msgstr ""#. Do not translate words between ### ###.-#: src/components/VHeader/VSearchBar/VSearchBar.vue:12+#: src/components/VHeader/VSearchBar/VSearchBar.vue:13msgctxt "search.search-bar-label"msgid "Search for content in ###openverse###"msgstr ""@@ -2012,7 +2012,7 @@ msgctxt "hero.disclaimer.license"msgid "Creative Commons license"msgstr ""-#: src/components/VHeader/VSearchBar/VSearchBar.vue:7+#: src/components/VHeader/VSearchBar/VSearchBar.vue:8msgctxt "hero.search.placeholder"msgid "Search for content"msgstr ""diff --git a/src/pages/index.vue b/src/pages/index.vueindex 55a590f41..faa23edbc 100644--- a/src/pages/index.vue+++ b/src/pages/index.vue@@ -43,7 +43,7 @@</div><VSearchBarv-model.trim="searchTerm"- class="max-w-[40rem] mt-4 lg:mt-8 group h-[57px] md:h-[69px]"+ class="max-w-[40rem] mt-4 lg:mt-8 group"size="standalone"@submit="handleSearch">diff --git a/test/playwright/visual-regression/pages/pages.spec.ts b/test/playwright/visual-regression/pages/pages.spec.tsindex 82ca4c192..04654f1f2 100644--- a/test/playwright/visual-regression/pages/pages.spec.ts+++ b/test/playwright/visual-regression/pages/pages.spec.ts@@ -4,7 +4,13 @@ import breakpoints from '~~/test/playwright/utils/breakpoints'import { removeHiddenOverflow } from '~~/test/playwright/utils/page'import { dismissTranslationBanner } from '~~/test/playwright/utils/navigation'-const contentPages = ['extension', 'about', 'meta-search', 'search-help']+const contentPages = [+ 'extension',+ 'about',+ 'meta-search',+ 'search-help',+ 'non-existent',+]for (const contentPage of contentPages) {test.describe(`${contentPage} page snapshots`, () => {test.describe('ltr', () => {diff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-2xl-linux.pngnew file mode 100644index 000000000..788f251f8Binary files /dev/null and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-lg-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-lg-linux.pngnew file mode 100644index 000000000..78dd036b7Binary files /dev/null and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-md-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-md-linux.pngnew file mode 100644index 000000000..bbc6bcc80Binary files /dev/null and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-sm-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-sm-linux.pngnew file mode 100644index 000000000..d6654640eBinary files /dev/null and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-xl-linux.pngnew file mode 100644index 000000000..4d3c5a5cbBinary files /dev/null and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-xs-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-xs-linux.pngnew file mode 100644index 000000000..eb9d17445Binary files /dev/null and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-2xl-linux.pngnew file mode 100644index 000000000..e9452aa41Binary files /dev/null and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-lg-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-lg-linux.pngnew file mode 100644index 000000000..929bac373Binary files /dev/null and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-md-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-md-linux.pngnew file mode 100644index 000000000..ae8076177Binary files /dev/null and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-sm-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-sm-linux.pngnew file mode 100644index 000000000..365053dc9Binary files /dev/null and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-xl-linux.pngnew file mode 100644index 000000000..650503daeBinary files /dev/null and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-xs-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-xs-linux.pngnew file mode 100644index 000000000..23d98573cBinary files /dev/null and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-xs-linux.png differ