DateTimeRangeInput (sm): min-width 240px keeps it from shrinking in a narrow container
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- css, react, typescript
- Domain
- frontend
Research direction
Start with the .uic-date-time-range-input--sm styles for DateTimeRangeInput and trace how the width prop interacts with its minimum width. Check the component’s existing tests or add a focused case for a container narrower than 240px with width="100%". Done means the small trigger fits its container and its start and end labels still truncate with an ellipsis.
Written by the indexing model from the issue text.
Description
Summary
DateTimeRangeInput at size="sm" has a fixed min-width: 240px (.uic-date-time-range-input--sm), so it cannot shrink with its container. width (string or number) does not lower it either: width="100%" in a container narrower than 240px still renders 240px wide.
Where it shows
Backend.AI WebUI dashboard cards put a small range picker in the card's header row. On a narrow card (a 2-column card on a laptop board, or a card a user resized) the header row wraps, but the picker stays 240px and runs past the card's edge (lablup/backend.ai-webui#10999, #11166).
Expected
The small trigger can shrink below 240px when its container is narrower (for example min-width: min(240px, 100%), or letting width override the minimum), truncating the start and end labels with the ellipsis it already has, so a consumer can fit it in a narrow container without overriding ui-common's CSS.
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 0
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 25
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lablup/ui-common
-
frontdesk
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
All issues in lablup/ui-common
Similar issues
-
prio:low status:done type:content
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
davidsneighbour/samui-samui.de#1925 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
opensro-dev/opensro#4901 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
super-productivity/super-productivity#12128 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
danielmiessler/LifeOS#3047 ·
Maintainers usually reply within 5 days
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at oncePossibly taken @2389400626lh-ops claimed this today. OpenArea: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
Maintainers usually reply within 1 day