import os

filepath = 'src/app/map/MapUI.tsx'
with open(filepath, 'r') as f:
    content = f.read()

# I will add mr-3 to the input so it doesn't touch the Go button
content = content.replace(
    'className="w-full bg-transparent text-sm text-slate-800 placeholder:text-slate-400 outline-none"',
    'className="w-full bg-transparent text-sm text-slate-800 placeholder:text-slate-400 outline-none mr-3 text-ellipsis overflow-hidden"'
)

with open(filepath, 'w') as f:
    f.write(content)
print("Input overlap fixed.")
