Skip to content

Fix overflowing style in article.css#15

Merged
akumm2k merged 1 commit into
mainfrom
fix-overflow
Dec 15, 2025
Merged

Fix overflowing style in article.css#15
akumm2k merged 1 commit into
mainfrom
fix-overflow

Conversation

@akumm2k

@akumm2k akumm2k commented Dec 15, 2025

Copy link
Copy Markdown
Owner

Fixes #12

@akumm2k akumm2k self-assigned this Dec 15, 2025
Copilot AI review requested due to automatic review settings December 15, 2025 11:00
@akumm2k akumm2k merged commit bf96104 into main Dec 15, 2025
5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request addresses overflow styling issues in article.css by modifying how links and tables are displayed. The changes aim to prevent content from overflowing its container by breaking long URLs and reducing table spacing.

Key Changes:

  • Added word-breaking behavior to anchor tags to handle long URLs
  • Reduced table cell padding by 73% (from 0.75em to 0.2em)
  • Removed table margins entirely

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread assets/css/article.css
th, td {
border: 1px solid #ddd;
padding: 0.75em;
padding: 0.2em;

Copilot AI Dec 15, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The padding has been reduced from 0.75em to 0.2em (73% reduction), which may make table content too cramped and difficult to read. Consider a more moderate reduction like 0.5em or 0.4em to balance overflow prevention with readability.

Suggested change
padding: 0.2em;
padding: 0.5em;

Copilot uses AI. Check for mistakes.
Comment thread assets/css/article.css
}
table {
border-collapse: collapse;
width: 100%;

Copilot AI Dec 15, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the table margin entirely will cause tables to be positioned directly against adjacent content without any vertical spacing. Consider keeping at least a minimal margin like 0.5em 0 or 1em 0 to maintain proper spacing between tables and surrounding elements.

Suggested change
width: 100%;
width: 100%;
margin: 1em 0;

Copilot uses AI. Check for mistakes.
Comment thread assets/css/article.css
a {
color: #3498db;
text-decoration: none;
word-break: break-word;

Copilot AI Dec 15, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applying word-break: break-word to all anchor elements may cause unintended breaking of short links and UI elements. Consider applying this style more selectively, such as targeting only links within article content (e.g., .container a) or using overflow-wrap: break-word instead, which only breaks when necessary to prevent overflow.

Suggested change
word-break: break-word;
overflow-wrap: break-word;

Copilot uses AI. Check for mistakes.
@akumm2k akumm2k deleted the fix-overflow branch December 15, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Fix article element sizing for iPhones.

2 participants