AOSSIE-Org / AOSSIE-Org/DebateAI

[BUG]: Profile Page Layout Is Not Responsive at Reduced Screen Sizes

Đã đóng
#489 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
84
Fork
198
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
30

Mô tả

### Bug Description

At the default 100% browser zoom, the Profile page displays correctly. However, when the viewport becomes smaller, such as at 67% browser zoom, some elements retain their original dimensions instead of adapting to the available space.

The main issues observed in all light, dark and high contrast theme are:
The Matches donut chart remains nearly the same size instead of scaling with its container.
The Ratings graph also maintains a fixed size, causing the graph and its surrounding content to become disproportionate.
As a result, the layout becomes crowded and does not make efficient use of the available screen space.

This indicates that parts of the Profile dashboard are relying on fixed dimensions rather than responding properly to changes in the available viewport/container size.

### Steps to Reproduce

Sign in to DebateAI.
Navigate to the Profile section.
Keep the browser zoom at 100% and observe the layout.
Reduce the browser zoom to 67% or use a smaller viewport size.
Observe the Matches chart and Ratings graph.

Expected Behavior
The Profile page should remain responsive across different viewport sizes.

Charts should resize according to their parent container.
The Matches donut chart should scale proportionally.
The Ratings graph should adapt to the available width and height.
No fixed-size element should cause the surrounding layout to become crowded or disproportionate.

Actual Behavior
At reduced viewport sizes, the Matches donut chart and Ratings graph retain dimensions that are too large for their available space. This causes the dashboard layout to become visually disproportionate and reduces the effectiveness of the responsive design.

### Logs and Screenshots

100% Browser Zoom:

Image

67% Browser Zoom:

Image

### Environment Details

_No response_

### Impact

Medium - Feature works but has issues

### Code of Conduct

- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start at the Profile section and inspect the implementation of the Matches donut chart and Ratings graph, focusing on how each responds to the available viewport and parent container. Reproduce the issue at 67% browser zoom or a smaller viewport, then verify that both charts resize proportionally without crowding the surrounding dashboard in light, dark, and high-contrast themes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
55/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.