diff options
| author | Aubrey Li <63608597+Aubrey-Li@users.noreply.github.com> | 2021-12-02 14:40:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-02 14:40:34 -0500 |
| commit | c415a692ed51563ea937901860d2532aede93d46 (patch) | |
| tree | af24d05b564ca4e0011aee368a38eaedb7981d64 /src/client/views/collections/TabDocView.tsx | |
| parent | c2cd77ca1d2a67539f0af2a68c1e7336b3bc232b (diff) | |
| parent | 2cb18e75aa487ff98086e15fef93e2f549c30496 (diff) | |
Merge pull request #50 from brown-dash/trails-aubrey
Maps integration
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index 5ba019698..7e57d0e89 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -437,8 +437,8 @@ export class TabMinimapView extends React.Component<TabMinimapViewProps> { case StyleProp.PointerEvents: return "none"; case StyleProp.DocContents: const background = doc.type === DocumentType.PDF ? "red" : doc.type === DocumentType.IMG ? "blue" : doc.type === DocumentType.RTF ? "orange" : - doc.type === DocumentType.VID ? "purple" : doc.type === DocumentType.WEB ? "yellow" : "gray"; - return doc.type === DocumentType.COL || doc.type === DocumentType.INK ? + doc.type === DocumentType.VID ? "purple" : doc.type === DocumentType.WEB ? "yellow" : doc.type === DocumentType.MAP ? "blue" : "gray"; + return doc.type === DocumentType.COL ? undefined : <div style={{ width: doc[WidthSym](), height: doc[HeightSym](), position: "absolute", display: "block", background }} />; } |
