Skip to content

Conversation

@prayag78
Copy link
Contributor

@prayag78 prayag78 commented Nov 13, 2025

Summary

This pull request fixes the visual inconsistencies between the top menu bars in Eventyay Talk and Eventyay Tickets. The goal is to make both headers look and feel the same when switching between the two. The update focuses on typography, icon sizes, spacing, and alignment.

fixes #1221

Changes

  • Unified font sizes, weights, and spacing across both top bars
  • Updated the Tickets “e” icon to match the size used in Talk
  • Kept Logout as an icon-only
  • Synced hover and focus behavior between components
  • Ensured consistent layout across desktop and mobile

Screenshots

Checklist

  • Compared icon and font sizes between Talk and Tickets
  • Updated the Tickets “e” icon to match Talk
  • Removed “Logout” text, leaving icon-only
  • Verified consistent Eventyay text weight
  • Confirmed matching font size and alignment for other menu items
  • Checked layout on both desktop and mobile

Summary by Sourcery

Unify the top menu bar styling between Eventyay Talk and Tickets for consistent typography, icon sizing, spacing, and alignment across desktop and mobile.

Enhancements:

  • Standardize typography by setting a uniform 14px font size and normal weight for all navbar links, buttons, and icons.
  • Align margins, paddings, and flex properties for the navbar brand, global navigation menu, and sidebar toggle to harmonize spacing and layout.
  • Update the Tickets “e” icon sizing to match Talk, remove logout text for an icon-only button, and synchronize hover/focus behaviors and responsive layouts.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Nov 13, 2025

Reviewer's Guide

Overhauls CSS/SCSS and template changes to unify typography, icon sizing, spacing, layout, and interactions of the top menu bars across Eventyay Talk and Tickets, ensuring a consistent UI.

Class diagram for updated top menu bar CSS classes

classDiagram
    class Navbar {
      +font-size: 14px
      +font-weight: normal
      +padding: 0.5rem
      +background-color: var(--color-primary)
      +border-color: var(--color-border-navbar)
    }
    class NavbarBrand {
      +font-size: 1.25rem / 2rem
      +font-weight: normal
      +display: flex
      +align-items: center
      +img.height: 30px
      +img.margin-right: 0.5rem
    }
    class NavLink {
      +font-size: 14px
      +font-weight: normal
      +padding: 0.5rem
      +active: font-size: 14px, font-weight: normal
    }
    class LogoutButton {
      +icon-only
      +font-size: 14px
      +font-weight: normal
      +margin: 0 4px
    }
    Navbar "1" *-- "many" NavbarBrand
    Navbar "1" *-- "many" NavLink
    Navbar "1" *-- "1" LogoutButton
Loading

Class diagram for updated sidebar toggle button

classDiagram
    class NavbarToggleSidebar {
      +display: flex
      +align-items: center
      +font-size: 14px
      +margin-top: 12px
      +padding: 0.5rem
      +background-color: transparent
      +border: none
      +color: #fff
    }
Loading

File-Level Changes

Change Details Files
Standardized typography across navbars
  • Set font-size to 14px and font-weight to normal in nav links and buttons
  • Removed custom font-weight from .navbar-brand
  • Applied consistent font sizing to admin-mode, end-admin-mode, header-nav, and danger buttons
app/eventyay/static/orga/css/_layout.css
app/eventyay/static/pretixcontrol/scss/main.scss
app/eventyay/static/pretixcontrol/scss/_sidebar.scss
app/eventyay/static/pretixcontrol/scss/_sb-admin-2.scss
Aligned icon dimensions and margins
  • Updated logout icon font-size to 14px
  • Standardized Tickets “e” icon and user icon margins
  • Set navbar-brand logo height to 30px
app/eventyay/static/orga/css/_layout.css
app/eventyay/static/pretixcontrol/scss/main.scss
Adjusted spacing and layout
  • Increased navbar padding to 0.5rem
  • Tweaked margins for global-nav-menu, nav-item, and sidebar-toggle
  • Unified display settings to flex/inline-flex and aligned items
app/eventyay/static/orga/css/_layout.css
app/eventyay/static/pretixcontrol/scss/main.scss
app/eventyay/static/pretixcontrol/scss/_sidebar.scss
Synchronized hover and focus behaviors
  • Unified hover color and text-decoration for links
  • Applied matching hover/active styles to danger and mobile navbar buttons
app/eventyay/static/orga/css/_layout.css
app/eventyay/static/pretixcontrol/scss/main.scss
Removed logout text for icon-only button
  • Deleted the 'Log out' span from the logout form
app/eventyay/orga/templates/orga/base.html

Possibly linked issues

  • #Bug: Match Top Menu Bar: The PR unifies Eventyay Talk and Tickets top menu bar by standardizing font/icon sizes and removing logout text.

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes - here's some feedback:

  • Since the logout button no longer has text, please add an aria-label or visually hidden text for screen readers to maintain accessibility compliance.
  • There are many repeated font-size: 14px and font-weight: normal declarations across your CSS/SCSS—consider extracting these into a shared SCSS variable or mixin to reduce duplication.
  • The selector .navbar-nav .nav-item.d-none.d-md-block is defined twice with conflicting margin-bottom values; consolidate into a single rule to avoid confusion and ensure consistent spacing.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Since the logout button no longer has text, please add an aria-label or visually hidden text for screen readers to maintain accessibility compliance.
- There are many repeated `font-size: 14px` and `font-weight: normal` declarations across your CSS/SCSS—consider extracting these into a shared SCSS variable or mixin to reduce duplication.
- The selector `.navbar-nav .nav-item.d-none.d-md-block` is defined twice with conflicting `margin-bottom` values; consolidate into a single rule to avoid confusion and ensure consistent spacing.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

@Saksham-Sirohi Saksham-Sirohi left a comment

Choose a reason for hiding this comment

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

close, but the text next to the logo has different weights, also padding for other icons and items are slightly different on both components, make sure both of them are the same

@prayag78
Copy link
Contributor Author

@Saksham-Sirohi can you take a look at these changes

Screenshot 2025-11-15 081800 Screenshot 2025-11-15 081830

@Saksham-Sirohi
Copy link
Contributor

@Saksham-Sirohi can you take a look at these changes
Screenshot 2025-11-15 081800 Screenshot 2025-11-15 081830

Hi, everything looks fine, just match their font weights as well

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 unifies the visual styling of the top navigation bars between Eventyay Talk and Eventyay Tickets to provide a consistent user experience. The changes standardize typography (font-size: 14px, font-weight: normal), icon sizing (height: 30px for brand logo), and spacing/alignment across both components.

  • Standardized all navbar links, buttons, and text to use 14px font size with normal weight
  • Updated brand logo size to 30px height and adjusted navbar padding to 1.2rem
  • Removed "Log out" button text label, keeping only the icon for consistency

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
app/eventyay/static/pretixcontrol/scss/main.scss Added comprehensive navbar styling rules for the Tickets component including font standardization, color schemes (#f8f9fa/#fff), and hover states for navbar elements, sidebar toggle, and buttons
app/eventyay/static/pretixcontrol/scss/_sidebar.scss Updated sidebar toggle to use flexbox layout, standardized font-size to 14px, and adjusted margin-top from 8px to 12px for better vertical alignment
app/eventyay/static/pretixcontrol/scss/_sb-admin-2.scss Added font-size: 14px and font-weight: normal to navbar-top-links styling
app/eventyay/static/orga/css/_layout.css Standardized navbar styling for Talk component including brand font-size (20px), padding (1.2rem), global nav menu positioning, and font standardization (14px/normal) for all navbar elements
app/eventyay/orga/templates/orga/base.html Removed "Log out" text span from logout button, keeping only the icon for a cleaner icon-only presentation

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

Copy link
Contributor

@Saksham-Sirohi Saksham-Sirohi left a comment

Choose a reason for hiding this comment

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

Font weight for orga(talk component) does not match that of the commons area. Please ensure it follows the font-weight same as of the commons area

@prayag78
Copy link
Contributor Author

Hi @Saksham-Sirohi, I’ve used font-weight font-weight: normal for both components. If something still looks off, could you please suggest what I should adjust?

@Saksham-Sirohi
Copy link
Contributor

Hi @Saksham-Sirohi, I’ve used font-weight font-weight: normal for both components. If something still looks off, could you please suggest what I should adjust?

I don't see any changes in your files to the global-nav-menu component; changes on the talk component's navbar are related to there only. Hopefully, this will also help. I noticed the control area lacks a logout button. Please add that as well and ensure consistency there as well

@mariobehling
Copy link
Member

mariobehling commented Nov 16, 2025

Just to confirm, please remove the logout button on the right-handside of the menu header.
Screenshot from 2025-11-16 13-32-56

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

Copilot reviewed 19 out of 19 changed files in this pull request and generated 9 comments.


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

"""
Call eventyay-ticket API to check if user owns ticket for this event.
# NOTE: It doesn't work with the Docker setup for development, because we use fake domain then,
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

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

The comment has a syntax error. The line "# NOTE: It doesn't work with the Docker setup for development, because we use fake domain then," should be part of the docstring, not a standalone comment starting with "#". This comment line should either be part of the docstring above or properly formatted as a multi-line comment.

Suggested change
# NOTE: It doesn't work with the Docker setup for development, because we use fake domain then,
NOTE: It doesn't work with the Docker setup for development, because we use a fake domain then,

Copilot uses AI. Check for mistakes.
@prayag78 prayag78 force-pushed the fix/topbar-consistency-eventyay-talk-tickets branch from 4a8fd29 to e64c605 Compare November 16, 2025 15:18
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Contributor

@Saksham-Sirohi Saksham-Sirohi left a comment

Choose a reason for hiding this comment

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

Hi, upon reviewing the latest changes, I noticed part of the issue demanding similar font-weight on talk and tickets is not satisfied. Also, some font weights may not be supported on the fonts in one of the places we are using. Please ensure this consistency

Copy link
Member

@mariobehling mariobehling left a comment

Choose a reason for hiding this comment

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

Ok, merging this and we can follow up if any additional changes are needed in follow-up PRs. Thank you!

@mariobehling mariobehling merged commit 70a8496 into fossasia:enext Nov 23, 2025
2 checks passed
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.

Bug: Match Top Menu Bar Between Eventyay Talk and Eventyay Tickets Components

3 participants