diff --git a/src/App.vue b/src/App.vue
index 4838948..cce01a2 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -94,7 +94,7 @@ export default class App extends BaseClass {
await this.loadCorkboardCotent()
- // Load the popup hint on start
+ // Load the popup hint on
this.loadHintPopup()
// React to keybind presses
diff --git a/src/BaseClass.ts b/src/BaseClass.ts
index 4f08093..93ac21c 100644
--- a/src/BaseClass.ts
+++ b/src/BaseClass.ts
@@ -437,6 +437,25 @@ export default class BaseClass extends Vue {
return fieldValue
}
+ /**
+ * Retrieves value of requested field. If the field doesn't exist, returns false instead
+ * @param document - Document object that is expected to contain the field
+ * @param fieldID - ID of the field to check
+ */
+ retrieveFieldType (document: I_OpenedDocument| I_ShortenedDocument, fieldID: string) : string | number | [] | false | I_FieldRelationship {
+ const fieldData = document?.extraFields
+
+ // Fizzle if field doesnt exist
+ if (!fieldData) {
+ return false
+ }
+
+ const documentBlueprint = this.SGET_blueprint(document.type)
+
+ const fieldType = documentBlueprint.extraFields.find(f => f.id === fieldID)?.type as unknown as string
+ return fieldType
+ }
+
/**
* Retrieves array length of requested field. If the field doesn't exist or isn't array, returns false instead
* @param document - Document object that is expected to contain the field
diff --git a/src/components/DocumentPreview.vue b/src/components/DocumentPreview.vue
index b8ce7f9..e0dda2e 100644
--- a/src/components/DocumentPreview.vue
+++ b/src/components/DocumentPreview.vue
@@ -265,6 +265,10 @@ export default class DocumentPreview extends BaseClass {
* Checks if the field in question
*/
hasValueFieldFilter (field: any) {
+ if (this.retrieveFieldType(this.localDocument, field.id) === "break") {
+ return true
+ }
+
const value = this.retrieveFieldValue(this.localDocument, field.id)
if (!value ||
@@ -430,6 +434,15 @@ export default class DocumentPreview extends BaseClass {
background-color: map-get($customColors, 'gunmetal-lighter') !important;
color: #fff;
+ .inputWrapper {
+ display: flex;
+ flex-direction: column;
+ }
+
+ h5 {
+ font-size: 19px;
+ }
+
.text-primary {
color: #ffd673 !important;
}
diff --git a/src/components/ObjectTree.vue b/src/components/ObjectTree.vue
index d625f89..0db2d76 100644
--- a/src/components/ObjectTree.vue
+++ b/src/components/ObjectTree.vue
@@ -68,7 +68,7 @@
@mouseleave="setDocumentPreviewClose"
>