Skip to content

Commit 63dd85a

Browse files
committed
polish map search presentation
1 parent c9ab51d commit 63dd85a

8 files changed

Lines changed: 16 additions & 10 deletions

File tree

e2e/listings.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,12 @@ test("listing edit saves and restores seeded business fields", async ({
181181
updatedVisibility
182182
);
183183

184-
await listingWriteForm
184+
const restoreDescriptionInput = listingWriteForm
185185
.locator("#description")
186-
.first()
187-
.fill(originalDescription);
186+
.first();
187+
await restoreDescriptionInput.fill("");
188+
await expect(restoreDescriptionInput).toHaveValue("");
189+
await restoreDescriptionInput.fill(originalDescription);
188190
await expect(listingWriteForm.locator("#description").first()).toHaveValue(
189191
originalDescription
190192
);

messages/de.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
"drawerDescription": "Details zum ausgewählten Eintrag.",
503503
"emptyTitle": "Nichts gefunden",
504504
"emptyBody": "Der Eintrag, den du suchst, existiert nicht oder wurde entfernt. Tut uns leid.",
505-
"searchPlaceholder": "Ort oder Gebiet suchen",
505+
"searchPlaceholder": "Strasse oder Ort suchen",
506506
"searchError": "Etwas ist schiefgelaufen. Erneut versuchen?",
507507
"searchNoResults": "Keine Ergebnisse. Tippe weiter oder verfeinere deine Suche",
508508
"searchDialogTitle": "Karte durchsuchen",

messages/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
"drawerDescription": "Selected listing details.",
503503
"emptyTitle": "Coming up empty",
504504
"emptyBody": "The listing you’re looking for doesn’t exist or has been removed. Sorry to disappoint.",
505-
"searchPlaceholder": "Search for a place or area",
505+
"searchPlaceholder": "Search for a street or place",
506506
"searchError": "Something went wrong. Try again?",
507507
"searchNoResults": "No results. Keep typing or refine your search",
508508
"searchDialogTitle": "Search the map",

messages/es.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
"drawerDescription": "Detalles del anuncio seleccionado.",
503503
"emptyTitle": "No encontramos nada",
504504
"emptyBody": "El anuncio que buscas no existe o fue eliminado.",
505-
"searchPlaceholder": "Busca un lugar o zona",
505+
"searchPlaceholder": "Busca una calle o un lugar",
506506
"searchError": "Algo salió mal. ¿Intentarlo de nuevo?",
507507
"searchNoResults": "Sin resultados. Sigue escribiendo o ajusta tu búsqueda",
508508
"searchDialogTitle": "Buscar en el mapa",

messages/fr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
"drawerDescription": "Détails de l’annonce sélectionnée.",
503503
"emptyTitle": "Rien à l’horizon",
504504
"emptyBody": "L’annonce que vous cherchez n’existe pas ou a été supprimée. Désolé pour la déception.",
505-
"searchPlaceholder": "Rechercher un lieu ou une zone",
505+
"searchPlaceholder": "Rechercher une rue ou un lieu",
506506
"searchError": "Quelque chose s’est mal passé. Réessayer ?",
507507
"searchNoResults": "Aucun résultat. Continuez à taper ou affinez votre recherche",
508508
"searchDialogTitle": "Rechercher sur la carte",

messages/pt-BR.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
"drawerDescription": "Detalhes do anúncio selecionado.",
503503
"emptyTitle": "Nada por aqui",
504504
"emptyBody": "O anúncio que você procura não existe ou foi removido. Desculpe a decepção.",
505-
"searchPlaceholder": "Busque um lugar ou área",
505+
"searchPlaceholder": "Busque uma rua ou um lugar",
506506
"searchError": "Algo deu errado. Tentar novamente?",
507507
"searchNoResults": "Nenhum resultado. Continue digitando ou refine a busca",
508508
"searchDialogTitle": "Buscar no mapa",

src/features/map/components/MapSearch.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ const DialogOverlay = styled(Dialog.Overlay)`
6464
position: fixed;
6565
inset: 0;
6666
z-index: 4;
67-
background: rgba(0, 0, 0, 0.18);
67+
background: rgba(0, 0, 0, 0.4);
68+
69+
@media (prefers-color-scheme: dark) {
70+
background: rgba(0, 0, 0, 0.62);
71+
}
6872
6973
&[data-state="open"] {
7074
animation: ${overlayEnter} 140ms ease-out;

src/features/map/components/MapView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const MapContainer = styled.div`
5858
position: relative;
5959
width: 100%;
6060
height: 100%;
61-
background-color: lightblue;
61+
background-color: ${theme.colors.background.map};
6262
`;
6363

6464
const ReturnToListingButton = styled(Button)`

0 commit comments

Comments
 (0)