Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

Match the keyboard button to the date field beside it

Mauricee03b6a308007
diff --git a/client/src/components/shared/CustomDateTimePicker.tsx b/client/src/components/shared/CustomDateTimePicker.tsx
index 14d0ad3df..1f97949c9 100644
--- a/client/src/components/shared/CustomDateTimePicker.tsx
+++ b/client/src/components/shared/CustomDateTimePicker.tsx
@@ -282,7 +282,11 @@ export function CustomDatePicker({
}}
/>
) : (
- <div style={{ display: 'flex', gap: 4, alignItems: 'center' }}>
+ // `stretch`, not `center`: the keyboard button's own padding made it a
+ // few pixels shorter than the date trigger beside it, and the two sat in
+ // a row with mismatched heights. Stretching means it tracks the trigger
+ // whatever the type scale does to that one.
+ <div style={{ display: 'flex', gap: 4, alignItems: 'stretch' }}>
{/* Calendar trigger */}
<button
type="button"
@@ -331,9 +335,10 @@ export function CustomDatePicker({
style={{
background: 'none',
border: '1px solid var(--border-primary)',
- borderRadius: 8,
+ // Same corner as the trigger it stands next to.
+ borderRadius: 10,
cursor: 'pointer',
- padding: '7px 8px',
+ padding: '0 9px',
display: 'flex',
alignItems: 'center',
color: 'var(--text-faint)',