thêm FormSearch trong map

This commit is contained in:
Tran Anh Tuan
2025-12-04 15:02:53 +07:00
parent 42028eafc3
commit 4d60ce279e
6 changed files with 275 additions and 96 deletions

View File

@@ -290,12 +290,13 @@ export default function Slider({
{Object.entries(marks).map(([key, label]) => {
const val = Number(key);
const pos = getPositionFromValue(val);
const leftPos = Math.max(0, Math.min(pos - 10, width - 40));
return (
<Text
key={key}
style={{
position: "absolute",
left: pos - 10,
left: leftPos,
fontSize: 12,
color: "#666",
textAlign: "center",