Skip to content

feat: show whole shape of blocks when mouse over the flyout#516

Merged
takaokouji merged 1 commit intodevelopfrom
fix/issue-19-flyout-hover-display
Jan 14, 2026
Merged

feat: show whole shape of blocks when mouse over the flyout#516
takaokouji merged 1 commit intodevelopfrom
fix/issue-19-flyout-hover-display

Conversation

@takaokouji
Copy link

Summary

This PR implements a feature to show the full shape of long blocks in the Blockly flyout when the user hovers over them.

Implementation Details

  • Added CSS rules to .blocks :global(.blocklyFlyout:hover) to set overflow: visible and clip-path.
  • Included -webkit-clip-path for better browser compatibility.
  • Added RTL support using [dir="rtl"].
  • Removed clipping for .blocklyWorkspace on hover.
  • Adjusted scrollbar opacity and margin to improve usability when the flyout expands.

This patch is based on the implementation from xcratch/scratch-editor.

Test Coverage

  • Verified that the CSS is correctly applied.
  • Manual verification is required to confirm the visual behavior in the browser.

Fixes #19 (smalruby/smalruby3-develop)

- Applied CSS patch to display the full shape of long Blockly blocks when hovering over
  the flyout palette.
- Added RTL support and improved browser compatibility with -webkit-clip-path.
- Adjust scrollbar opacity and margin for better usability during hover.

Co-Authored-By: Gemini <noreply@google.com>
@takaokouji takaokouji merged commit 34d7180 into develop Jan 14, 2026
2 checks passed
@takaokouji takaokouji deleted the fix/issue-19-flyout-hover-display branch January 14, 2026 16:21
github-actions bot pushed a commit that referenced this pull request Jan 14, 2026
…flyout-hover-display

feat: show whole shape of blocks when mouse over the flyout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rubyタブを追加した結果、その他のタブのサイズが狭くなり、文字がはみ出ている

1 participant