Skip to content

feat(profile): add avatar_isround option and fix typescript diagnostic errors#748

Open
Korltex wants to merge 2 commits into
saicaca:mainfrom
Korltex:feat/round-avatar
Open

feat(profile): add avatar_isround option and fix typescript diagnostic errors#748
Korltex wants to merge 2 commits into
saicaca:mainfrom
Korltex:feat/round-avatar

Conversation

@Korltex

@Korltex Korltex commented Apr 1, 2026

Copy link
Copy Markdown

Type of change

  • Bug fix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING document.
  • I have checked to ensure that this Pull Request is not for personal changes.
  • I have performed a self-review of my own code.
  • My changes generate no new warnings.

Related Issue

Changes

  1. Type Fixes: Resolved ts(2322) and ts(2578) errors in Navbar.astro, archive.astro, and language-badge.ts to ensure compatibility with Astro 5 strict type checking.
  2. New Feature: Introduced avatar_isround configuration in ProfileConfig.
  3. UI Enhancement: Implemented dynamic rounding for the profile avatar using Tailwind CSS. When avatar_isround is set to true, the avatar, hover mask, and image wrapper will display as a circle (GitHub style) with object-cover to prevent distortion.

How To Test

  1. Run pnpm install to ensure all dependencies are present.
  2. Run pnpm check to verify that all TypeScript diagnostic errors are resolved (Result: 0 errors).
  3. Toggle avatar_isround: true / false in src/config.ts and verify the UI changes in the local development server (pnpm dev).

Screenshots (if applicable)

Default (isround: false) Circular Avatar (isround: true)
Square avatar Round avatar

Additional Notes

The motivation for this change is to provide more personalization options for users who prefer the circular avatar style common on platforms like GitHub, while simultaneously cleaning up the build logs by fixing existing type mismatches.

@vercel

vercel Bot commented Apr 1, 2026

Copy link
Copy Markdown

@Korltex is attempting to deploy a commit to the zephyirdgmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant