aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-10-23 23:35:01 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-10-23 23:35:01 -0400
commit910e4d8a22a312d2ca0b8a970ff434604f7c6f91 (patch)
treea74313b0464300c79520b7679cfb3066e449c4c7 /src/client/documents/Documents.ts
parentc861f31a93ad246b9200b328a63df15da795f050 (diff)
several fixes to audio documents to make linking work better and to customize the audio controls UI
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index cad417d33..f26594e04 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -171,7 +171,7 @@ export namespace Docs {
}],
[DocumentType.AUDIO, {
layout: { view: AudioBox, dataField: data },
- options: { height: 32 }
+ options: { height: 35, backgroundColor: "lightGray", borderRounding: "20%" }
}],
[DocumentType.PDF, {
layout: { view: PDFBox, dataField: data },
@@ -691,6 +691,7 @@ export namespace DocUtils {
}
});
}
+
export function MakeLink(source: { doc: Doc, ctx?: Doc }, target: { doc: Doc, ctx?: Doc }, title: string = "", description: string = "", id?: string) {
let sv = DocumentManager.Instance.getDocumentView(source.doc);
if (sv && sv.props.ContainingCollectionDoc === target.doc) return;