Skip to content

Bugfix/classes styling#81

Open
Richardinho3 wants to merge 5 commits intomainfrom
bugfix/classes-styling
Open

Bugfix/classes styling#81
Richardinho3 wants to merge 5 commits intomainfrom
bugfix/classes-styling

Conversation

@Richardinho3
Copy link
Collaborator

  • Changed component styling to match with dark theme
  • Added confirmation after deleting a class
  • Removed duplicate buttons
  • Fixed responsiveness

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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>
)}
@Richardinho3 Richardinho3 requested a review from daneedev March 16, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants