Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
16e00494
Commit
16e00494
authored
Oct 23, 2025
by
Claude
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: improve layout and spacing in LocationSelector
parent
7079790d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
LocationSelector.tsx
...c/components/MemoEditor/ActionButton/LocationSelector.tsx
+24
-24
No files found.
web/src/components/MemoEditor/ActionButton/LocationSelector.tsx
View file @
16e00494
...
...
@@ -155,11 +155,11 @@ const LocationSelector = (props: Props) => {
</
Tooltip
>
</
TooltipProvider
>
<
PopoverContent
align=
"center"
className=
"w-[min(24rem,calc(100vw-2rem))] p-0"
>
<
div
className=
"flex flex-col gap-
4 p-4
"
>
<
div
className=
"w-full overflow-hidden
rounded-lg border bg-muted/30 shadow-xs
"
>
<
div
className=
"flex flex-col gap-
2 p-0
"
>
<
div
className=
"w-full overflow-hidden
bg-muted/30
"
>
<
LeafletMap
key=
{
JSON
.
stringify
(
state
.
initialized
)
}
latlng=
{
state
.
position
}
onChange=
{
onPositionChanged
}
/>
</
div
>
<
div
className=
"w-full space-y-3"
>
<
div
className=
"w-full space-y-3
px-2 pb-2
"
>
<
div
className=
"grid grid-cols-2 gap-3"
>
<
div
className=
"grid gap-1"
>
<
Label
htmlFor=
"memo-location-lat"
className=
"text-xs font-medium uppercase tracking-wide text-muted-foreground"
>
...
...
@@ -207,27 +207,27 @@ const LocationSelector = (props: Props) => {
className=
"min-h-16"
/>
</
div
>
</
div
>
<
div
className=
"flex items-center justify-end gap-2"
>
<
Button
variant=
"ghost"
size=
"sm"
onClick=
{
()
=>
setPopoverOpen
(
false
)
}
>
{
t
(
"common.cancel"
)
}
</
Button
>
<
Button
size=
"sm"
onClick=
{
()
=>
{
props
.
onChange
(
Location
.
fromPartial
({
placeholder
:
state
.
placeholder
,
latitude
:
state
.
position
?.
lat
,
longitude
:
state
.
position
?.
lng
,
}),
);
setPopoverOpen
(
false
);
}
}
disabled=
{
!
state
.
position
||
state
.
placeholder
.
trim
().
length
===
0
}
>
{
t
(
"common.confirm"
)
}
</
Button
>
<
div
className=
"w-full flex items-center justify-end gap-2"
>
<
Button
variant=
"ghost"
size=
"sm"
onClick=
{
()
=>
setPopoverOpen
(
false
)
}
>
{
t
(
"common.cancel"
)
}
</
Button
>
<
Button
size=
"sm"
onClick=
{
()
=>
{
props
.
onChange
(
Location
.
fromPartial
({
placeholder
:
state
.
placeholder
,
latitude
:
state
.
position
?.
lat
,
longitude
:
state
.
position
?.
lng
,
})
,
);
setPopoverOpen
(
false
);
}
}
disabled=
{
!
state
.
position
||
state
.
placeholder
.
trim
().
length
===
0
}
>
{
t
(
"common.confirm"
)
}
</
Button
>
</
div
>
</
div
>
</
div
>
</
PopoverContent
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment