7 lines
1.0 KiB
Python
7 lines
1.0 KiB
Python
from pathlib import Path
|
|
qa=Path('C:/Users/macbook/.config/investmoz/navegacao-QA-20261016/source')
|
|
for file in ['resources/js/pages/qa/navigation.tsx','resources/js/components/navigation-context.tsx']:
|
|
p=qa/file;s=p.read_text('utf-8').replace('className="max-w-full rounded border p-3"','className="min-w-0 w-full max-w-full rounded border p-3"').replace('className="max-w-full rounded border p-2"','className="min-w-0 w-full max-w-full rounded border p-2"').replace('className="rounded border p-3" value={pending}', 'className="min-w-0 w-full max-w-full rounded border p-3" value={pending}');s=s.replace('max-w-6xl space-y-6','max-w-6xl min-w-0 [overflow-wrap:anywhere] space-y-6');p.write_text(s,'utf-8')
|
|
p=qa/'routes/web.php';s=p.read_text('utf-8');s=s.replace("'values'=>['province'=>$z->province ?? '', 'district'=>$z->district ?? '']", "'values'=>array_filter(['province'=>$z->province, 'district'=>$z->district],fn($v)=>is_string($v) && trim($v)!=='')");p.write_text(s,'utf-8')
|
|
print('Mobile selectors fit grid; unknown source values do not erase existing values')
|