Skip to content

Commit

Permalink
Add EditorHintText css class
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Jul 25, 2024
1 parent cd55706 commit 40812be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gui/src/app/FileEditor/TextEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ const createHintTextContentWidget = (hintText: string) => {
const node = document.createElement("div");
node.style.width = "max-content";
node.style.pointerEvents = "none";
node.className = "EditorHintText";
node.textContent = hintText;
node.style.fontStyle = "italic";
return node;
},
getId: () => "hintText",
Expand Down
5 changes: 5 additions & 0 deletions gui/src/localStyles.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,8 @@ span.EditorTitle {
height: 100%;
overflow: auto;
}

.EditorHintText {
font-style: italic;
color: #aaa;
}

0 comments on commit 40812be

Please sign in to comment.