Skip to content

Commit 6a3e1c9

Browse files
committed
feat: Add placeholder text to Place AC widget.
1 parent dc2455e commit 6a3e1c9

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

samples/ai-powered-summaries/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@
1515
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
1616
</head>
1717
<body>
18-
<gmp-map center="37.805, -122.425" zoom="14" map-id="DEMO_MAP_ID">
18+
<gmp-map center="37.80, -122.425" zoom="14" map-id="DEMO_MAP_ID">
1919
<!-- Search Input Card -->
2020
<div
2121
class="place-autocomplete-card"
2222
slot="control-inline-start-block-start">
23-
<p>Search for a place with AI summaries:</p>
24-
<gmp-place-autocomplete></gmp-place-autocomplete>
23+
<gmp-place-autocomplete placeholder="Find places with AI summaries"></gmp-place-autocomplete>
2524
</div>
2625

2726
<!-- Summary text panel (initially hidden) -->

samples/ai-powered-summaries/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12-
12+
"@js-api-samples/ai-powered-summaries": "file:"
1313
}
1414
}

samples/ai-powered-summaries/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ body {
2222
border-radius: 5px;
2323
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
2424
margin: 10px;
25-
padding: 15px;
25+
padding: 2px;
2626
font-family: Roboto, sans-serif;
2727
font-size: 1rem;
2828
}
2929

3030
gmp-place-autocomplete {
31-
width: 300px;
31+
width: 330px;
3232
}
3333

3434
/* New: Summary Panel Styles */

0 commit comments

Comments
 (0)