Skip to content

Conversation

@AlexAndBear
Copy link
Contributor

@AlexAndBear AlexAndBear commented Sep 29, 2025

Description

desktop viewport

image

mobile viewport

image

Related Issue

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear AlexAndBear requested review from Copilot and kulmann and removed request for Copilot September 29, 2025 15:09
Copilot AI review requested due to automatic review settings September 29, 2025 15:12
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 adds mobile logo support to the top bar by introducing a responsive logo display mechanism that shows different logos based on screen size. The changes enable customizable logos for mobile viewports while maintaining backward compatibility.

  • Added responsive picture element with media queries for mobile logo display
  • Extended theme configuration to support optional mobile logo property
  • Updated extension SDK with Tailwind CSS configuration and documentation

Reviewed Changes

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

Show a summary per file
File Description
packages/web-runtime/src/components/Topbar/TopBar.vue Added responsive picture element to display mobile-specific logo
packages/web-pkg/src/composables/piniaStores/theme.ts Added logoMobile property to theme schema
packages/extension-sdk/tailwind.css New Tailwind CSS configuration for extensions
packages/extension-sdk/README.md Added documentation for Tailwind CSS usage
packages/design-system/docs/gettingStarted/tailwindMigration.md Added note about Tailwind prefix requirements

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

<picture>
<source
:srcset="currentTheme.logoMobile ? currentTheme.logoMobile : currentTheme.logo"
media="(max-width: 639px)"
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

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

The hardcoded breakpoint value 639px should use a CSS custom property or design system token to maintain consistency with other responsive breakpoints in the application.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not supported by media query

Copy link
Contributor

Choose a reason for hiding this comment

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

There is a brief moment before the 639px are reached where the bigger logo starts to be shrinked because we're running out of space horizontally. Just tested around with the bigger breakpoint, 959px also feels good. What do you think? Approving anyway, because this works flawlessly. 🥳

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that's fine, we can use the "higher" breakpoint

AlexAndBear and others added 2 commits September 29, 2025 17:22
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

Nice improvement! 😍

<picture>
<source
:srcset="currentTheme.logoMobile ? currentTheme.logoMobile : currentTheme.logo"
media="(max-width: 639px)"
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a brief moment before the 639px are reached where the bigger logo starts to be shrinked because we're running out of space horizontally. Just tested around with the bigger breakpoint, 959px also feels good. What do you think? Approving anyway, because this works flawlessly. 🥳

@AlexAndBear AlexAndBear merged commit 44eda75 into main Sep 30, 2025
28 checks passed
@AlexAndBear AlexAndBear deleted the issues/1265 branch September 30, 2025 08:43
@openclouders openclouders mentioned this pull request Sep 30, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile viewport topbar logo

3 participants