Skip to content

feat(stage-tamagotchi): add icon size settings for tamagotchi#940

Merged
nekomeowww merged 7 commits intomoeru-ai:mainfrom
leaft:add-icon-size-settings-for-tamagotchi
Jan 12, 2026
Merged

feat(stage-tamagotchi): add icon size settings for tamagotchi#940
nekomeowww merged 7 commits intomoeru-ai:mainfrom
leaft:add-icon-size-settings-for-tamagotchi

Conversation

@leaft
Copy link
Contributor

@leaft leaft commented Jan 12, 2026

Description

  • 添加侧边控制栏图标大小设置项-自动/默认/小图标。

  • 修复 ComboboxContent 导致的重叠问题,使用 ComboboxPortal,问题如下图所示。

  • Add sidebar controls island icon size settings: Auto(Responsive) / Large(Default) / Small.

  • Fix overlapping issues caused by ComboboxContent by using ComboboxPortal (see the image below).

IMG_20260112_235921

Linked Issues

Additional Context

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @leaft, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances user customization by adding a new setting for the sidebar controls island's icon size, allowing users to choose between automatic, large, or small icons. Concurrently, it addresses a critical UI bug by implementing a portal mechanism for combobox dropdowns, ensuring they render correctly without overlapping surrounding content.

Highlights

  • New Feature: Controls Island Icon Size Setting: Introduced a new setting that allows users to customize the icon size on the sidebar controls island. Options include 'Auto' (responsive), 'Large' (default), and 'Small'.
  • Bug Fix: Combobox Overlapping Issue: Resolved an issue where ComboboxContent would overlap with other UI elements by refactoring it to use ComboboxPortal for proper rendering.
Ignored Files
  • Ignored by pattern: packages/i18n/src/** (2)
    • packages/i18n/src/locales/en/settings.yaml
    • packages/i18n/src/locales/zh-Hans/settings.yaml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 12, 2026

⏳ Approval required for deploying to Cloudflare Workers (Preview) for stage-web.

Name Link
🔭 Waiting for approval For maintainers, approve here

Hey, @nekomeowww, @sumimakito, @luoling8192, @LemonNekoGH, kindly take some time to review and approve this deployment when you are available. Thank you! 🙏

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request successfully adds a new icon size setting for the controls island and fixes a UI overlapping issue with the combobox by correctly using ComboboxPortal. The code changes are well-implemented. I've provided a suggestion to correct a minor typo in a prop name.

Comment on lines +8 to +14
const props = withDefaults(defineProps<{
needcontrolsIslandIconSizeSetting?: boolean
}>(), {
needcontrolsIslandIconSizeSetting: import.meta.env.RUNTIME_ENVIRONMENT === 'electron',
})

const showControlsIsland = computed(() => props.needcontrolsIslandIconSizeSetting)
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

There's a small typo in the prop name needcontrolsIslandIconSizeSetting. It should be needsControlsIslandIconSizeSetting for better readability and grammatical correctness. I've updated it in the suggestion below, along with its usage in the showControlsIsland computed property.

const props = withDefaults(defineProps<{
  needsControlsIslandIconSizeSetting?: boolean
}>(), {
  needsControlsIslandIconSizeSetting: import.meta.env.RUNTIME_ENVIRONMENT === 'electron',
})

const showControlsIsland = computed(() => props.needsControlsIslandIconSizeSetting)

@nekomeowww nekomeowww changed the title Add icon size settings for tamagotchi feat(stage-tamagotchi): adjustable ControlsIsland icon sizes Jan 12, 2026
@leaft leaft changed the title feat(stage-tamagotchi): adjustable ControlsIsland icon sizes feat(stage-tamagotchi): add icon size settings for tamagotchi Jan 12, 2026
Copy link
Contributor Author

@leaft leaft left a comment

Choose a reason for hiding this comment

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

I moved the logic to settings-store, but I’m concerned it’s becoming a bit bloated.

@nekomeowww
Copy link
Member

You are right, we can later split it down into different settings for each modules (appearance, language, general, etc.)

@nekomeowww nekomeowww merged commit 0e543b5 into moeru-ai:main Jan 12, 2026
9 checks passed
@nekomeowww nekomeowww added feat New feature or request apps/stage-tamagotchi Desktop App: Windows & macOS & Linux labels Jan 12, 2026
Joker-of-Gotham pushed a commit to Joker-of-Gotham/airi that referenced this pull request Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apps/stage-tamagotchi Desktop App: Windows & macOS & Linux feat New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants