Update frontend code

This commit is contained in:
2026-09-02 18:23:05 +05:30
parent 8c25b84616
commit d46f78bbd0
25 changed files with 1213 additions and 279 deletions
+16
View File
@@ -0,0 +1,16 @@
const fs = require('fs');
const path = require('path');
const dir = './src/pages';
const files = fs.readdirSync(dir).filter(f => f.endsWith('.tsx'));
for (const file of files) {
const filePath = path.join(dir, file);
let content = fs.readFileSync(filePath, 'utf8');
// Replace the style attribute for the input to include height: '64px'
// It currently looks like: style={{ paddingLeft: '60px', paddingRight: '16px', fontSize: '16px' }}
content = content.replace(/style=\{\{ paddingLeft: '60px', paddingRight: '16px', fontSize: '16px' \}\}/g, "style={{ height: '64px', paddingLeft: '60px', paddingRight: '16px', fontSize: '18px' }}");
fs.writeFileSync(filePath, content, 'utf8');
}
console.log('Added explicit inline height 64px to search inputs.');