Browse Source

Fix displaying of character hint posts.

master
Gisle Aune 3 years ago
parent
commit
283ffc64b2
  1. 1
      marko/page/logs-content/components/add-post-modal/index.marko
  2. 1
      marko/page/logs-content/components/edit-post-modal/index.marko
  3. 3
      marko/page/logs-content/components/post/index.marko

1
marko/page/logs-content/components/add-post-modal/index.marko

@ -14,6 +14,7 @@
<option value="annotation.info" selected=(state.values.kind === "annotation.info")>Annotation - Info</option>
<option value="annotation.warning" selected=(state.values.kind === "annotation.warning")>Annotation - Warning</option>
<option value="annotation.error" selected=(state.values.kind === "annotation.error")>Annotation - Error</option>
<option value="chars" selected=(state.values.kind === "chars")>Character Hints</option>
</select>
<label>Nick</label>

1
marko/page/logs-content/components/edit-post-modal/index.marko

@ -14,6 +14,7 @@
<option value="annotation.info" selected=(state.values.kind === "annotation.info")>Annotation - Info</option>
<option value="annotation.warning" selected=(state.values.kind === "annotation.warning")>Annotation - Warning</option>
<option value="annotation.error" selected=(state.values.kind === "annotation.error")>Annotation - Error</option>
<option value="chars" selected=(state.values.kind === "chars")>Character Hints</option>
</select>
<label>Nick</label>

3
marko/page/logs-content/components/post/index.marko

@ -22,6 +22,9 @@
<irc-caret-notation class="post-content" source=state.text />
</annotation>
</div>
<div if(input.post.kind === "chars") class="post-body color-menu" >
<p><em>Character hint: ${input.post.text}</em></p>
</div>
<div if(input.post.kind === "scene") class="post-body color-text">
<irc-caret-notation class="post-content post-scene" source=state.text />
</div>

Loading…
Cancel
Save