From 41c5947778e75161457120554cde0a3f66885ad1 Mon Sep 17 00:00:00 2001 From: Dan Birman Date: Tue, 12 Nov 2024 14:45:45 -0800 Subject: [PATCH] minor: fixing missing Swipe, and adding some css improvements --- src/aind_qc_portal/panel/media.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/aind_qc_portal/panel/media.py b/src/aind_qc_portal/panel/media.py index b90102a..68600c6 100644 --- a/src/aind_qc_portal/panel/media.py +++ b/src/aind_qc_portal/panel/media.py @@ -16,19 +16,20 @@ height: 24px; z-index: 10000; opacity: 1; - color: grey; + color: white; transition-delay: 0.5s; transition: 0.5s; cursor: pointer; + border-radius:4px; } .fullscreen-button:hover { transition: 0.5s; - color: white; + background-color: black; } .fullscreen-button:focus { - color: white; + background-color: black; } .pn-container, .object-container { height: 100%; @@ -108,6 +109,11 @@ def __init__(self, reference, parent): self.object = self.parse_reference(reference) def parse_reference(self, reference): + if ';' in reference: + return pn.layout.Swipe( + self.parse_reference(reference.split(';')[0]), + self.parse_reference(reference.split(';')[1]), + ) if "http" in reference: parsed_url = urlparse(reference)