-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdecrease_logo.py
More file actions
26 lines (20 loc) · 1008 Bytes
/
Copy pathdecrease_logo.py
File metadata and controls
26 lines (20 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import os
files_to_update = [
"c:\\Users\\MALLESWARI\\Videos\\HireSense-AI\\frontend\\src\\components\\Navbar.jsx",
"c:\\Users\\MALLESWARI\\Videos\\HireSense-AI\\frontend\\src\\pages\\Dashboard.jsx",
"c:\\Users\\MALLESWARI\\Videos\\HireSense-AI\\frontend\\src\\pages\\NotFound.jsx",
"c:\\Users\\MALLESWARI\\Videos\\HireSense-AI\\frontend\\src\\pages\\Login.jsx",
"c:\\Users\\MALLESWARI\\Videos\\HireSense-AI\\frontend\\src\\pages\\Register.jsx",
"c:\\Users\\MALLESWARI\\Videos\\HireSense-AI\\frontend\\src\\pages\\UploadResume.jsx"
]
search_string = 'height: "64px"'
replacement = 'height: "40px"'
for file_path in files_to_update:
if not os.path.exists(file_path):
continue
with open(file_path, "r", encoding="utf-8") as f:
content = f.read()
new_content = content.replace(search_string, replacement)
with open(file_path, "w", encoding="utf-8") as f:
f.write(new_content)
print(f"Decreased logo size in {file_path}")