Skip to content

Commit

Permalink
fix: remove useless code about format button
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinesmilelk committed Feb 29, 2024
1 parent d446ef9 commit e37f319
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 13 deletions.
33 changes: 33 additions & 0 deletions .changeset/witty-gifts-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
'@difizen/libro-core': patch
'@difizen/libro-docs': patch
'@difizen/libro-code-cell': patch
'@difizen/libro-code-editor': patch
'@difizen/libro-codemirror': patch
'@difizen/libro-cofine-editor': patch
'@difizen/libro-cofine-editor-contribution': patch
'@difizen/libro-cofine-editor-core': patch
'@difizen/libro-cofine-textmate': patch
'@difizen/libro-common': patch
'@difizen/libro-jupyter': patch
'@difizen/libro-kernel': patch
'@difizen/libro-l10n': patch
'@difizen/libro-lab': patch
'@difizen/libro-language-client': patch
'@difizen/libro-lsp': patch
'@difizen/libro-markdown': patch
'@difizen/libro-markdown-cell': patch
'@difizen/libro-output': patch
'@difizen/libro-prompt-cell': patch
'@difizen/libro-raw-cell': patch
'@difizen/libro-rendermime': patch
'@difizen/libro-search': patch
'@difizen/libro-search-code-cell': patch
'@difizen/libro-shared-model': patch
'@difizen/libro-terminal': patch
'@difizen/libro-toc': patch
'@difizen/libro-virtualized': patch
'@difizen/libro-widget': patch
---

fix: remove useless code about format button
26 changes: 13 additions & 13 deletions packages/libro-core/src/toolbar/libro-toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ export class LibroToolbarContribution implements ToolbarContribution {
group: ['group2'],
order: 'c-all',
});
registry.registerItem({
id: DocumentCommands['FormatCell'].id,
command: DocumentCommands['FormatCell'].id,
tooltip: (
<div className="libro-side-tooltip">
<span className="libro-tooltip-text">{l10n.t('格式化代码')}</span>
<span className="libro-tooltip-keybind">Shift+Option+F</span>
</div>
),

group: ['sidetoolbar1'],
order: 'd',
});
// registry.registerItem({
// id: DocumentCommands['FormatCell'].id,
// command: DocumentCommands['FormatCell'].id,
// tooltip: (
// <div className="libro-side-tooltip">
// <span className="libro-tooltip-text">{l10n.t('格式化代码')}</span>
// <span className="libro-tooltip-keybind">Shift+Option+F</span>
// </div>
// ),

// group: ['sidetoolbar1'],
// order: 'd',
// });
registry.registerItem({
id: NotebookCommands['MoveCellUp'].id,
command: NotebookCommands['MoveCellUp'].id,
Expand Down

0 comments on commit e37f319

Please sign in to comment.