Skip to content

Commit

Permalink
Merge pull request #2 from caseydwyer/enhancement-instruction-display…
Browse files Browse the repository at this point in the history
…-and-markdown

Enhancement: Instruction display and markdown
  • Loading branch information
eminos authored Oct 9, 2023
2 parents 7e55d2f + cd35586 commit 44b7739
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions dist/build/assets/statamic-group-29b7d030.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/build/assets/statamic-group-89a25fd5.css

This file was deleted.

4 changes: 2 additions & 2 deletions dist/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"resources/css/statamic-group.css": {
"file": "assets/statamic-group-89a25fd5.css",
"file": "assets/statamic-group-29b7d030.css",
"isEntry": true,
"src": "resources/css/statamic-group.css"
},
"resources/js/statamic-group.js": {
"file": "assets/statamic-group-d752d391.js",
"file": "assets/statamic-group-7565f277.js",
"isEntry": true,
"src": "resources/js/statamic-group.js"
}
Expand Down
3 changes: 2 additions & 1 deletion resources/css/statamic-group.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
}

.group-fieldtype > .field-inner,
.group-fieldtype > label {
.group-fieldtype > label,
.group-fieldtype > label:first-child + .help-block {
display: none !important;
}

Expand Down
4 changes: 1 addition & 3 deletions resources/js/compontents/GroupFieldtype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
<label class="publish-field-label">
<span v-text="config.display" v-tooltip="{content: config.handle, delay: 300, autoHide: false}"></span>
</label>
<div class="help-block -mt-2" v-if="config.instructions">
<p v-text="config.instructions"></p>
</div>
<div class="help-block -mt-2" v-if="config.instructions" v-html="$options.filters.markdown(config.instructions)"></div>
</div>
<div class="toggle-fieldtype-wrapper grp-mt-2" v-if="config.show_toggle">
<toggle-input v-model="toggle"></toggle-input>
Expand Down

0 comments on commit 44b7739

Please sign in to comment.