Skip to content

Commit

Permalink
fix(style): fix style issue on google
Browse files Browse the repository at this point in the history
  • Loading branch information
EINDEX committed Jan 21, 2025
1 parent c23e627 commit 4aea912
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/content/searchingEngines/searchingEngines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ export class Google extends SearchingEngine {
if (hasAside) {
asideElement.insertBefore(container, asideElement.firstChild);
} else {
const noAsideElement = document.getElementById('rcnt');
noAsideElement!.appendChild(container);
const noAsideElement = document.getElementById('center_col');
noAsideElement?.parentNode?.appendChild(container);
container.id = 'rhs';
container.style.width = '372px';
}
return container;
}
Expand All @@ -59,7 +60,9 @@ export class Ecosia extends SearchingEngine {

gotElement(): Element {
const container = document.createElement('article');
const asideElement = document.querySelector('.layout__content .web .sidebar');
const asideElement = document.querySelector(
'.layout__content .web .sidebar',
);
asideElement!.insertBefore(container, asideElement!.firstChild);

return container;
Expand Down

0 comments on commit 4aea912

Please sign in to comment.