Skip to content

Commit

Permalink
revert btn and active resize on focus
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Oct 24, 2023
1 parent c9a07dc commit 5451f6e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/admin-block-editor-tools/dist/Raw.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions packages/admin-block-editor-tools/src/Raw/Raw.css
Expand Up @@ -12,8 +12,9 @@
height: auto;
padding: 2px;
}
}

.ce-block--focused .ce-rawtool {
width: calc(100vw - 230px - 28vw);

.ce-block--focused .ce-rawtool {
width: calc(100vw - 222px - 28vw);
}
}
10 changes: 0 additions & 10 deletions packages/admin-block-editor-tools/src/Raw/Raw.js
Expand Up @@ -24,16 +24,6 @@ export default class Raw extends RawTool {

this.editor = this.transformTextareaToAce();

this.fullscreenBtn = document.createElement('div');
this.fullscreenBtn.className = 'aceFsBtn'; // Add the 'test' class
this.fullscreenBtn.innerHTML =
'<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" fill="currentColor" class="bi bi-arrows-fullscreen" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M5.828 10.172a.5.5 0 0 0-.707 0l-4.096 4.096V11.5a.5.5 0 0 0-1 0v3.975a.5.5 0 0 0 .5.5H4.5a.5.5 0 0 0 0-1H1.732l4.096-4.096a.5.5 0 0 0 0-.707zm4.344 0a.5.5 0 0 1 .707 0l4.096 4.096V11.5a.5.5 0 1 1 1 0v3.975a.5.5 0 0 1-.5.5H11.5a.5.5 0 0 1 0-1h2.768l-4.096-4.096a.5.5 0 0 1 0-.707zm0-4.344a.5.5 0 0 0 .707 0l4.096-4.096V4.5a.5.5 0 1 0 1 0V.525a.5.5 0 0 0-.5-.5H11.5a.5.5 0 0 0 0 1h2.768l-4.096 4.096a.5.5 0 0 0 0 .707zm-4.344 0a.5.5 0 0 1-.707 0L1.025 1.732V4.5a.5.5 0 0 1-1 0V.525a.5.5 0 0 1 .5-.5H4.5a.5.5 0 0 1 0 1H1.732l4.096 4.096a.5.5 0 0 1 0 .707z"/></svg>';
this.fullscreenBtn.onclick = () => {
wrapper.classList.toggle('ce-rawtool-full');
this.editor.resize();
};
wrapper.appendChild(this.fullscreenBtn);

return wrapper;
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/admin-block-editor/src/assets/admin.scss
Expand Up @@ -33,7 +33,7 @@ a[rel='encrypt']:not(.link-btn) {

@media screen and (min-width: 1200px) {
.ce-block__content, .ce-toolbar__content {
margin-left:65px;
margin-left:60px;
}
}
/* purgecss end ignore */

0 comments on commit 5451f6e

Please sign in to comment.