MCP Open Client - A NiceGUI-based chat application for Claude
Project description
Drawer Close Button Positioning Solution
This repository contains a comprehensive solution for moving the drawer close button from its default right position to the left side in a NiceGUI application that uses Quasar components.
Files Included
- settings/app-styles.css: Contains 7 different CSS selector options to move the drawer close button
- drawer-button-verification.md: Guide for testing and troubleshooting the solution
- drawer-solution-summary.md: Summary of the approach and explanation of CSS options
- browser-specific-fixes.css: Additional CSS for browser compatibility
- custom-drawer-example.py: Alternative Python implementations with custom drawers
Quick Start
- Include the CSS from
settings/app-styles.cssin your NiceGUI application - Test the drawer close button position
- If needed, refer to
drawer-button-verification.mdfor troubleshooting
CSS Solution
The primary solution uses CSS to change the justify-content property of the drawer header from flex-end (right-aligned) to flex-start (left-aligned). Multiple selector options are provided to ensure compatibility with different Quasar/NiceGUI versions.
Example:
.q-drawer__content > div:first-child {
justify-content: flex-start !important;
}
Alternative Approaches
If the CSS solution doesn't work for your specific implementation, alternative approaches are provided:
- Custom Drawer Header: Create your own drawer header with a manually positioned close button
- JavaScript Solution: Use client-side JavaScript to reposition the button programmatically
- CSS Hiding Technique: Hide the default button and add your own in the desired position
Browser Compatibility
The solution includes specific fixes for:
- Chrome and Chromium-based browsers
- Firefox
- Safari
- Edge/IE Legacy
- Mobile devices
- High-density displays
Integration with NiceGUI
The solution is designed to work with NiceGUI's implementation of Quasar's drawer component. It respects the existing drawer functionality while only changing the position of the close button.
Troubleshooting
If you encounter issues:
- Check which CSS selector works best for your specific implementation
- Use browser developer tools to inspect the drawer structure
- Try the alternative approaches provided in
custom-drawer-example.py - Refer to
drawer-button-verification.mdfor detailed troubleshooting steps
License
This solution is provided under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_open_client-0.2.10.tar.gz.
File metadata
- Download URL: mcp_open_client-0.2.10.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60e2e7cb9816aa1c181b0ed1549cf488c95bae3558ec94988b49e682aceacbcc
|
|
| MD5 |
1f2aadb569d190236d1b1674000660c2
|
|
| BLAKE2b-256 |
e5d6bd7968ec60bfa4ac209e8850463bc53f6f64d5a388e0fc26a58c6f396c73
|
File details
Details for the file mcp_open_client-0.2.10-py3-none-any.whl.
File metadata
- Download URL: mcp_open_client-0.2.10-py3-none-any.whl
- Upload date:
- Size: 25.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5634501d8c2851ff682239ec4af9c3d3bace485ada018a411527e532d65704d9
|
|
| MD5 |
515ade7729b5419f96adfce8caf6304b
|
|
| BLAKE2b-256 |
fe70a1c1555fddb1bc6748cd091d0df0f316265a62fa94e7913df839de18cc08
|