-
Notifications
You must be signed in to change notification settings - Fork 120
Implement responsive design fixes in index.css #1378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -671,3 +671,320 @@ html { scroll-behavior: smooth; } | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* fix/skip-to-main-content */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* ========================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| RESPONSIVE FIXES | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Append at the END of index.css | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ========================================================== */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Better responsive sizing */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| *, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| *::before, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| *::after { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| box-sizing: border-box; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| html { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -webkit-text-size-adjust: 100%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| img, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| video, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| canvas, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| svg { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max-width: 100%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| height: auto; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| display: block; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| input, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| textarea, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| select, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| button { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font: inherit; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Prevent horizontal scrolling */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| html, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| body { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| overflow-x: hidden; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Better responsive containers */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .container, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [class*="container"] { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| margin-inline: auto; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding-inline: 1rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (min-width: 640px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .container, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [class*="container"] { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max-width: 640px; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (min-width: 768px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .container, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [class*="container"] { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max-width: 768px; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding-inline: 1.5rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (min-width: 1024px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .container, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [class*="container"] { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max-width: 1024px; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding-inline: 2rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (min-width: 1280px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .container, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [class*="container"] { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max-width: 1280px; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (min-width: 1536px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .container, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [class*="container"] { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max-width: 1440px; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Responsive Typography */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h1 { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: clamp(2rem, 5vw, 4.5rem); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| line-height: 1.1; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h2 { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: clamp(1.75rem, 4vw, 3.2rem); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| line-height: 1.15; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h3 { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: clamp(1.4rem, 3vw, 2.3rem); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h4 { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: clamp(1.2rem, 2vw, 1.8rem); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| p { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: clamp(0.95rem, 1vw, 1.05rem); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Responsive sections */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| section { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding-block: clamp(3rem, 8vw, 7rem); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Glass cards */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .glass-card { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| overflow: hidden; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (max-width: 640px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .glass-card { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| border-radius: 18px; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding: 1rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Buttons */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .btn-primary { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| min-height: 48px; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding-inline: 1.5rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (max-width: 640px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .btn-primary { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| justify-content: center; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding: 0.9rem 1.2rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 0.95rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+800
to
+813
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Base 🔧 Suggested fix `@media` (max-width: 640px) {
.btn-primary {
width: 100%;
+ display: flex;
justify-content: center;
padding: 0.9rem 1.2rem;
font-size: 0.95rem;
}
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Inputs */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .glass-input { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Navigation */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .glass-nav { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (max-width: 768px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .glass-nav { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding-inline: 1rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Grid responsiveness */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .responsive-grid { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| display: grid; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| gap: 1.5rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (max-width: 640px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .responsive-grid { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| grid-template-columns: 1fr; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| gap: 1rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Flex helpers */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .flex-responsive { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| gap: 1.5rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (max-width: 768px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .flex-responsive { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| flex-direction: column; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Responsive spacing */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .responsive-padding { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding: clamp(1rem, 3vw, 3rem); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .responsive-margin { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| margin: clamp(1rem, 3vw, 3rem); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Tables */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| table { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| display: block; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| overflow-x: auto; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| white-space: nowrap; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+866
to
+872
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
# Map the CSS file and any table-related markup/usages.
git ls-files src/index.css
printf '\n--- index.css around table rules ---\n'
wc -l src/index.css
sed -n '830,900p' src/index.css
printf '\n--- search for table-related selectors/usages ---\n'
rg -n --context 2 '\btable\b|table-responsive|overflow-x|white-space:\s*nowrap|display:\s*block' srcRepository: durdana3105/peer-learning Length of output: 12108 🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '\n--- src/components/ui/table.tsx ---\n'
wc -l src/components/ui/table.tsx
sed -n '1,120p' src/components/ui/table.tsx
printf '\n--- any plain <table> usages outside the wrapper ---\n'
rg -n "<table|</table>" src --glob '!src/components/ui/table.tsx' --context 2
printf '\n--- table-related class usage in CSS ---\n'
rg -n "table-responsive|\btable\b" src/index.css src/components src/pages src/features src/hooksRepository: durdana3105/peer-learning Length of output: 2979 🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '\n--- usages of the shared table component ---\n'
rg -n "from \"`@/components/ui/table`\"|from './components/ui/table'|from '../components/ui/table'|<Table|TableHead|TableBody|TableRow|TableCell|TableHeader|TableFooter|TableCaption" src
printf '\n--- raw table elements in TSX/JSX ---\n'
rg -n "<table|</table>" src --glob '*.tsx' --glob '*.jsx' --context 2Repository: durdana3105/peer-learning Length of output: 2184 Scope the overflow style to a wrapper. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Code blocks */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pre { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| overflow-x: auto; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Mobile adjustments */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (max-width: 640px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| body { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 15px; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h2, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h3, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h4 { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| word-break: break-word; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+886
to
+891
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Deprecated Use 🔧 Suggested fix h1,
h2,
h3,
h4 {
- word-break: break-word;
+ overflow-wrap: break-word;
}📝 Committable suggestion
Suggested change
🧰 Tools🪛 Stylelint (17.14.0)[error] 890-890: Deprecated keyword "break-word" for property "word-break" (declaration-property-value-keyword-no-deprecated) (declaration-property-value-keyword-no-deprecated) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .chip { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 0.72rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding: 0.3rem 0.6rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .glass-button, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .btn-primary { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .orb { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| filter: blur(60px); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .shadow-neon-cyan, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .shadow-neon-purple { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| box-shadow: none; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Tablets */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (min-width: 641px) and (max-width: 1023px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| section { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding-block: 5rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .glass-card { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding: 1.5rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Large Screens */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (min-width: 1600px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| body { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 18px; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .container, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [class*="container"] { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max-width: 1500px; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| section { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding-block: 8rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Landscape phones */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (max-height: 500px) and (orientation: landscape) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| section { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding-block: 2rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h1 { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 2rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Better touch targets */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (pointer: coarse) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| button, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| a, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| input, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| textarea, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| select { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| min-height: 44px; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+954
to
+964
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Touch-target
🔧 Suggested fix button,
a,
input,
textarea,
select {
min-height: 44px;
+ display: inline-flex;
+ align-items: center;
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Prevent overflowing text */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h2, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h3, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h4, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h5, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h6, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| p, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| span, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| div { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| overflow-wrap: break-word; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| word-wrap: break-word; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+966
to
+978
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Deprecated
🔧 Suggested fix overflow-wrap: break-word;
- word-wrap: break-word;
}📝 Committable suggestion
Suggested change
🧰 Tools🪛 Stylelint (17.14.0)[error] 977-977: Expected "word-wrap" to be "overflow-wrap" (property-no-deprecated) (property-no-deprecated) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Utility */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .full-width-mobile { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (min-width: 768px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .full-width-mobile { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width: auto; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: durdana3105/peer-learning
Length of output: 210
🏁 Script executed:
Repository: durdana3105/peer-learning
Length of output: 7900
🏁 Script executed:
Repository: durdana3105/peer-learning
Length of output: 17246
🏁 Script executed:
Repository: durdana3105/peer-learning
Length of output: 5191
Restrict the global container selector in
src/index.css.[class*="container"]matches unrelated classes like.success-container, and the late.containerrule overrides existingpx-6padding on sections that already useclassName="container ...". Limit this to a dedicated class or remove the attribute selector.🤖 Prompt for AI Agents