AOSSIE-Org / AOSSIE-Org/EduAid

Extension popup opens with inconsistent initial size (Chrome auto-sizing issue)

Open
#316 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
171
Forks
423
PR merge metrics
No merged PRs in 30d

Description

### Description
The EduAid browser extension popup opens with inconsistent initial dimensions
across sessions and browsers (Chrome / Edge).

This occurs because extension popups are auto-sized by the browser based on the
document's initial layout. Using responsive or `min-width` / `min-height` based
CSS does not guarantee a stable initial size for extension popups.

As a result:
- The popup sometimes opens smaller than intended
- UI elements appear cramped or clipped on first render
- Layout may shift after content loads

This issue is specific to the **browser extension popup** and is independent of
web app responsiveness fixes (e.g. `eduaid_web` changes).

---

### Expected Behavior
The extension popup should always open at a consistent base size
(e.g. 420×600), with internal scrolling for overflow content.

---

### Proposed Solution
Hard-code width and height on `html`, `body`, and `#root` for popup pages only,
which is the recommended approach for Chrome/Edge extension popups.

---

### Environment
- Browser: Chrome / Microsoft Edge
- Surface: EduAid browser extension popup

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.