How to change the width of each slide ?
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
从链接的 CodeSandbox 开始,检查 component.tsx,重点关注幻灯片宽度、间距和滑动条件之间是如何协调的。重现宽度缩小的情况,并验证完成后的行为在保持间距不变的同时,仍能保留平滑的 swipe 效果。
由索引模型根据 Issue 内容生成。
描述
Hi,
I am trying to use this demo https://codesandbox.io/s/react-swipeable-image-carousel-hben8 in my project, but I need to reduce the width of each slide. I tried to set the width, but this made the space between each slide larger. I also tried to add the condition if (!props.sliding) return "none" at the component.tsx, this reduced the space but made the swipe effect not smooth.
Could you please tell me the way to change the width of the slide without making the space between each slide larger?
Thank you.
Regards,
Elva
- 主要语言
- TypeScript
- 星标
- 2.1k
- 派生
- 149
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
FormidableLabs/react-swipeable 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 30/100
-
难度 3/5 1-2 天 新手友好度 45/100
-
难度 3/5 1-2 天 新手友好度 30/100
FormidableLabs/react-swipeable#332 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
-
Svelte version未关闭
难度 5/5 一周以上 新手友好度 20/100
FormidableLabs/react-swipeable#326 · 3 个 reaction ·
查看 FormidableLabs/react-swipeable 的全部 Issue
相似的 Issue
-
bnv-manager-v2: accept_invite creates the Mailcow domain admin before the commit可能已有人在做 @myOmikron 今天认领。 未关闭bug ready-for-agent
难度 2/5 1-3 小时 新手友好度 82/100
-
platform:windows tool triaged wontfix
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
nicolettas-muggelbude/RechnungsFee#448 ·
维护者通常 1 天内回复
-
Android bug feature/error-tracking react-native team/error-tracking
难度 2/5 1-3 小时 新手友好度 72/100
PostHog/posthog-js#5310 · 1 条评论 ·
维护者通常 1 天内回复