wechat-miniprogram / wechat-miniprogram/float-pigment

[layout] flex item should have a default min-width

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
17
Forks
4
Avg merge
4m
Merged PRs (30d)
1

Description

When shrinking, min-content is a hidden factor for flex items. If the min-width and width are not set for an item, the min-content should be used as the real min-width, a.k.a.

real-min-width = min-width ?? min(width, min-content)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the flex-item sizing and shrinking implementation in the Rust layout code, then trace how min-width, width, and min-content are resolved. Confirm the behavior with a focused layout test covering an item with neither min-width nor width; done means its effective minimum follows the stated formula during shrinking.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.