Skip to content

Commit

Permalink
minor: fixing missing Swipe, and adding some css improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Nov 12, 2024
1 parent 1b47e97 commit 41c5947
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/aind_qc_portal/panel/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 41c5947

Please sign in to comment.