Open
Conversation
Collaborator
Richardinho3
commented
Mar 16, 2026
- Changed component styling to match with dark theme
- Added confirmation after deleting a class
- Removed duplicate buttons
- Fixed responsiveness
…nd ClassesPage components
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes styling and UX issues on the Classes page: updates component colors to match a dark theme, improves mobile responsiveness, adds a delete confirmation dialog, and removes duplicate navigation buttons from the header.
Changes:
- Dark theme styling for alerts, dropdown menu, and confirmation modal; responsive layout adjustments across breakpoints
- Added a confirmation dialog before deleting a class in
ClassCard - Removed duplicate header buttons and provisional dashboard link from
ClassesPage, added an empty-state message
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| frontend/src/routes/ClassesPage.tsx | Removed duplicate buttons/link, added responsive classes, dark-themed alerts, empty state |
| frontend/src/components/ClassesNavBar.tsx | Adjusted responsive width/visibility classes for small screens |
| frontend/src/components/ClassCard.tsx | Dark-themed dropdown menu, delete confirmation modal, toggle fix for menu |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+192
to
+243
| {confirmDelete && ( | ||
| <div | ||
| className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 cursor-default" | ||
| onClick={(e) => { | ||
| e.preventDefault(); | ||
| e.stopPropagation(); | ||
| setConfirmDelete(false); | ||
| }} | ||
| > | ||
| <div | ||
| className="bg-[#272727] border border-[#3a3a3a] rounded-xl p-4 sm:p-6 w-[calc(100vw-2rem)] max-w-80 text-center shadow-xl" | ||
| onClick={(e) => { | ||
| e.preventDefault(); | ||
| e.stopPropagation(); | ||
| }} | ||
| > | ||
| <h2 className="text-white text-lg font-semibold mb-2"> | ||
| Smazat třídu | ||
| </h2> | ||
| <p className="text-zinc-400 text-sm mb-6"> | ||
| Opravdu chcete smazat třídu{" "} | ||
| <span className="text-white font-medium">{title}</span>? Tuto akci | ||
| nelze vrátit zpět. | ||
| </p> | ||
| <div className="flex gap-3 justify-center"> | ||
| <button | ||
| type="button" | ||
| onClick={(e) => { | ||
| e.preventDefault(); | ||
| e.stopPropagation(); | ||
| setConfirmDelete(false); | ||
| }} | ||
| className="px-4 py-2 rounded-lg bg-[#3a3a3a] text-white text-sm hover:bg-[#4a4a4a] transition-colors hover:cursor-pointer" | ||
| > | ||
| Zrušit | ||
| </button> | ||
| <button | ||
| type="button" | ||
| onClick={(e) => { | ||
| e.preventDefault(); | ||
| e.stopPropagation(); | ||
| setConfirmDelete(false); | ||
| onDelete?.(); | ||
| }} | ||
| className="px-4 py-2 rounded-lg bg-red-600 text-white text-sm hover:bg-red-700 transition-colors hover:cursor-pointer" | ||
| > | ||
| Smazat | ||
| </button> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| )} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.