Skip to content

Conversation

@SupakornNetsuwan
Copy link
Collaborator

Screenshot 2568-05-22 at 23 28 59

I'd like to suggest creating a layouts directory under views/collections and move layout falling under the collections to views/collections/layouts folder

@changeset-bot
Copy link

changeset-bot bot commented May 22, 2025

⚠️ No Changeset found

Latest commit: 38bcf7b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment on lines 28 to 29
<SidebarHeader className="border-border m-0 size-auto! border-b pl-6 h-auto! w-full!">
<div className="flex h-[68px]! items-center gap-x-4">
Copy link
Member

Choose a reason for hiding this comment

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

recheck ให้หน่อย ทำไมต้อง important

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

เพราะว่า จากการเรียกใช้ Component SidebarHeader

<SidebarHeader className="border-border m-0 border-b pl-6 h-auto w-full!">...</SidebarHeader>

ภายใน Component มีการเรียกใช้

const header = tv({
  base: 'mb-2 flex flex-col **:data-[slot=sidebar-label-mask]:hidden',
  variants: {
    collapsed: {
      false: '',
      true: 'mt-2 group-data-[sidebar-intent=float]/sidebar-container:mt-2 md:mx-auto md:size-9 md:items-center md:justify-center md:p-0 md:hover:bg-(--sidebar-accent)',
    },
  },
})
  1. ที่มาจากตัว Library ตรง md:size-9 ทำให้การกำหนด h-auto ธรรมดาไม่สามารถทำได้ ถูก size-9 override ไป
  2. ที่มาจากตัว Library ตรง md:size-9 ทำให้การกำหนด w-full ธรรมดาไม่สามารถทำได้ ถูก size-9 override ไป เช่นกัน
  3. จาก h-[68px]! สามารถเปลี่ยนเป็น h-[68px] ได้ครับ ✅

จริง ๆ สามารถเอา md:size-9 ออกได้จาก SidebarHeader ของ IntentUI แต่คิดว่าไม่ควรไปหยุมหยัมกับสิ่งที่ Library ให้มาเท่าไหร่ จะให้เอาออกไหมครับ

Copy link
Member

Choose a reason for hiding this comment

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

ถ้าเป็น h-auto md:h-auto w-full md:w-full จะ work มั้ยนะ

Copy link
Member

Choose a reason for hiding this comment

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

ส่วนอันข้างล่าง h-[68px] เฉย ๆ น่าจะ work นะ?

Copy link
Member

@saenyakorn saenyakorn left a comment

Choose a reason for hiding this comment

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

Other than that, LGTM

Base automatically changed from yu/feat/auth to main May 26, 2025 06:04
@SupakornNetsuwan SupakornNetsuwan merged commit 6bae0f4 into main May 26, 2025
1 check passed
@SupakornNetsuwan SupakornNetsuwan deleted the supakorn/fix/routing branch May 26, 2025 06:05
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