- 29 Aug, 2025 1 commit
-
-
🎨 This commit introduces a comprehensive responsive design system for the SelectableButtonGroup component that adapts to container width changes, particularly optimized for dynamic sidebar layouts. ## Key Features ### 1. Container Width Detection - Added `useContainerWidth` hook using ResizeObserver API - Real-time container width monitoring for responsive calculations - Automatic layout adjustments based on available space ### 2. Intelligent Column Layout Implements a 4-tier responsive system: - **≤280px**: 1 column + tags (mobile portrait) - **281-380px**: 2 columns + tags (narrow screens) - **381-460px**: 3 columns - tags (general case, prioritizes readability) - **>460px**: 3 columns + tags (wide screens, full feature display) ### 3. Dynamic Tag Visibility - Tags automatically hide in medium-width containers (381-460px) to improve text readability - Tags show in narrow and wide containers where space allows for optimal UX - Responsive threshold ensures content clarity across all viewport sizes ### 4. Adaptive Grid Spacing - Compact spacing `[4,4]` for containers ≤400px - Standard spacing `[6,6]` for larger containers - Additional `.sbg-compact` CSS class for fine-tuned styling in narrow layouts ### 5. Sidebar Integration - Perfectly compatible with dynamic sidebar width: `clamp(280px, 24vw, 520px)` - Automatically adjusts as sidebar scales with viewport changes - Maintains optimal button density and information display at all sizes ## Technical Implementation - **Hook**: `useContainerWidth.js` - ResizeObserver-based width detection - **Component**: Enhanced `SelectableButtonGroup.jsx` with responsive logic - **Styling**: Added `.sbg-compact` mode in `index.css` - **Performance**: Efficient span calculation using `Math.floor(24 / perRow)` ## Benefits - Improved UX across all screen sizes and sidebar configurations - Better text readability through intelligent tag hiding - Seamless integration with existing responsive sidebar system - Maintains component functionality while optimizing space utilization Closes: Responsive design implementation for model marketplace sidebar components
t0ng7u committed
-
- 28 Aug, 2025 7 commits
- 27 Aug, 2025 9 commits
-
-
creamlike1024 committed
-
creamlike1024 committed
-
creamlike1024 committed
-
CaIon committed
-
CaIon committed
-
CaIon committed
-
t0ng7u committed
-
✨ - Add `filter={selectFilter}` to enable search filtering in group Select component - Add `autoClearSearchValue={false}` to preserve search input value - Maintain consistency with existing model selector search behavior - Improve user experience by allowing quick filtering of group options Files modified: - web/src/components/playground/SettingsPanel.jsxt0ng7u committed -
🐛 - Update error-state rendering to use white text in the playground chat - Remove Typography.Text `type="danger"` and the red background for consistency with official behavior - Preserve layout and other message states (loading/success/system) unchanged - No linter issues introduced Files touched: - web/src/components/playground/MessageContent.jsx
t0ng7u committed
-
- 26 Aug, 2025 12 commits
-
-
creamlike1024 committed
-
creamlike1024 committed
-
creamlike1024 committed
-
CaIon committed
-
CaIon committed
-
fix(adaptor): missing first text delta while convert OpenAI to Claude
Calcium-Ion committed -
feat: adapt Volcengine adaptor for deepseek3.1 with thinking mode
Calcium-Ion committed -
CaIon committed
-
CaIon committed
-
CaIon committed
-
CaIon committed
-
CaIon committed
-
- 25 Aug, 2025 11 commits
-
-
CaIon committed
-
iszcz committed
-
feat: update openai websearch price
IcedTangerine committed -
AAEE86 committed
-
- 新增接口通过2FA验证后获取渠道密钥 - 统一实现2FA验证码和备用码的验证逻辑 - 记录用户查看密钥的操作日志 - 编辑渠道弹窗新增查看密钥按钮,触发2FA验证模态框 - 使用TwoFactorAuthModal进行验证码输入及验证 - 验证成功后弹出渠道密钥展示窗口 - 对渠道编辑模态框的状态进行了统一重置优化 - 添加相关国际化文案支持密钥查看功能
AAEE86 committed -
CaIon committed
-
# Conflicts: # dto/dalle.go
CaIon committed -
CaIon committed
-
CaIon committed
-
CaIon committed
-
🍎 t0ng7u committed
-