0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-23 08:48:12 +00:00

add more image snippets and other snippets

This commit is contained in:
Charlie Humphreys
2023-07-16 12:35:08 -05:00
parent 1b2d8d46a6
commit 77b0e93dd3
4 changed files with 78 additions and 12 deletions

View File

@@ -66,7 +66,6 @@ const ImageSelector = createClass({
const currentText = `${label}${current ?? ''}`;
const index = 2;
const value = label + this.state.selected;
console.log(text, pattern, currentText, value, fullmatch, label, current);
cm.replaceRange(value, CodeMirror.Pos(n, index), CodeMirror.Pos(n, index + currentText.length), '+insert');
},

View File

@@ -2,6 +2,8 @@
display: flex;
flex-direction: row;
flex-wrap: wrap;
max-height: 60vh;
overflow-y: scroll;
img {
flex: 0 0 auto;