chat-layout-width-detection

Official

Enhances chat layout accuracy across devices and viewports.

Authorai-shifu
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses inconsistencies in chat page layout detection between mobile and desktop interfaces by ensuring layout decisions are based on real viewport width rather than container width, thereby improving responsiveness.

Core Features & Use Cases

  • Viewport-Based Layout Detection: Calculates effective layout width from multiple DOM sources to accurately determine device type.
  • Responsive Adjustment: Reacts to resize, orientation change, and visual viewport resize events to update layout states in real-time.
  • Use Case: Implementing a chat application that maintains consistent behavior across different devices and window sizes, especially when WebView containers behave unexpectedly.

Quick Start

Use the chat layout detection skill to improve responsiveness and eliminate layout misjudgments on mobile and WebView environments.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: chat-layout-width-detection
Download link: https://github.com/ai-shifu/ai-shifu/archive/main.zip#chat-layout-width-detection

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.