Skip to content

Commit

Permalink
fix: various (#20)
Browse files Browse the repository at this point in the history
* better usage of dyne-code-editor

* fix: preset-editor-bg
  • Loading branch information
bbtgnn authored Aug 5, 2024
1 parent 32da61a commit a3bcfb1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,22 +169,25 @@ export class DyneSlangroomEditor {
<Section title={EditorId.CONTRACT}>
<dyne-code-editor
name={EditorId.CONTRACT}
config={{ doc: this.contract, extensions: this.keyboardExtension }}
content={this.contract}
config={{ extensions: this.keyboardExtension }}
></dyne-code-editor>
</Section>

<Section title={EditorId.DATA}>
<dyne-code-editor
name={EditorId.DATA}
config={{ doc: this.data, extensions: [this.keyboardExtension, json()] }}
content={this.data}
config={{ extensions: [this.keyboardExtension, json()] }}
></dyne-code-editor>
</Section>

{this.keysMode == 'editor' && (
<Section title={EditorId.KEYS}>
<dyne-code-editor
name={EditorId.KEYS}
config={{ doc: this.keys, extensions: [this.keyboardExtension, json()] }}
content={this.keys}
config={{ extensions: [this.keyboardExtension, json()] }}
></dyne-code-editor>
</Section>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class DyneSlangroomPresetLoader {
<dyne-button size="small" emphasis="m" onClick={() => this.dialog?.showModal()}>
Select preset
</dyne-button>
<dialog class="backdrop:bg-black backdrop:opacity-75 h-screen m-0">
<dialog class="backdrop:bg-black backdrop:opacity-75 h-screen m-0 bg-white">
<div class="sticky top-0 bg-white">
<div class="flex gap-4 justify-between items-center p-4 border-b ">
<p>Select a Slangroom preset</p>
Expand Down

0 comments on commit a3bcfb1

Please sign in to comment.