Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,11 @@ body {
@apply bg-background text-foreground;
}
}

@media (max-width: 768px) {
.repo-link-box {
overflow-wrap: break-word;
word-break: break-word;
word-wrap: break-word;
}
}
Comment on lines +96 to +102
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Replace deprecated word-break: break-word with standard properties.

The media query correctly targets mobile devices and solves the overflow issue. However, Line 99 uses word-break: break-word, which is a deprecated/non-standard value that was removed from the CSS specification.

Apply this diff to use only standard properties:

 @media (max-width: 768px) {
   .repo-link-box {
     overflow-wrap: break-word;
-    word-break: break-word;
     word-wrap: break-word;
   }
 }

The combination of overflow-wrap: break-word (modern) and word-wrap: break-word (legacy fallback) provides the same functionality with better cross-browser compatibility using standard properties only.

🤖 Prompt for AI Agents
In app/globals.css around lines 96 to 102, the rule uses the non‑standard value
"word-break: break-word"; remove that property and rely on the standard
combination of "overflow-wrap: break-word" plus the legacy fallback "word-wrap:
break-word" inside the media query to achieve the same behavior with proper
cross‑browser compatibility.

2 changes: 1 addition & 1 deletion app/submit/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Remember to cite your sources and provide value to our readers!`}</pre>
</span>
Go to our repository
</h4>
<p className="text-gray-700">
<p className="text-gray-700 repo-link-box">
Visit{" "}
<Link
href="https://github.com/StabilityNexus/StableViewpoints"
Expand Down
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.