@@ -421,39 +509,55 @@ class Pages extends LitElement
+
+ ${this.isSidebar && this.collInfo.lists.length ? html`
+
+
Filter By List:
+
+
+
+
` : ``}
+
-
-
+
+
` : ``}
-
- ${this.index ? html`
-
${this.index}.
- ` : ``}
-
-
${date ? date.toLocaleDateString() : ""}
-
${date ? date.toLocaleTimeString() : ""}
-
-
-
-
-
- ${this.iconValid ? html`
-
this.iconValid = false}" src="${this.replayPrefix}/${timestamp}id_/${p.favIconUrl}"/>` : html`
- `}
-
-
-
@@ -845,9 +1066,7 @@ class PageEntry extends LitElement
return;
}
- const {timestamp} = this.getDateTS();
-
- const resp = await fetch(`${this.replayPrefix}/${timestamp}id_/${this.page.favIconUrl}`);
+ const resp = await fetch(`${this.replayPrefix}/${this.timestamp}id_/${this.page.favIconUrl}`);
if (resp.status != 200) {
this.favIconData = null;
@@ -911,9 +1130,10 @@ class PageEntry extends LitElement
onReplay(event) {
event.preventDefault();
+
const data = {
- url: event.currentTarget.getAttribute("data-url"),
- ts: event.currentTarget.getAttribute("data-ts"),
+ url: this.page.url,
+ ts: this.timestamp,
view: "replay"
};
this.sendChangeEvent(data);
diff --git a/src/replay.js b/src/replay.js
index 3d8b975..8571b10 100644
--- a/src/replay.js
+++ b/src/replay.js
@@ -86,6 +86,14 @@ class Replay extends LitElement
}
}
+ setDisablePointer(disable) {
+ const iframe = this.renderRoot.querySelector("iframe");
+
+ if (iframe) {
+ iframe.style.pointerEvents = disable ? "none" : "all";
+ }
+ }
+
onReplayMessage(event) {
const iframe = this.renderRoot.querySelector("iframe");
@@ -154,7 +162,7 @@ class Replay extends LitElement
}
iframe {
- width: 100vw;
+ width: 100%;
#height: calc(100vh - 150px);
height: 100%;
border: 0px;
diff --git a/src/sorter.js b/src/sorter.js
index ad868ee..21cf7d5 100644
--- a/src/sorter.js
+++ b/src/sorter.js
@@ -113,6 +113,7 @@ class Sorter extends LitElement
return wrapCss(css`
:host {
min-width: 100px;
+ box-sizing: border-box !important;
}
button.button.is-small {
border-radius: 4px;
diff --git a/src/story.js b/src/story.js
index 2ebfc33..621094e 100644
--- a/src/story.js
+++ b/src/story.js
@@ -94,6 +94,7 @@ class Story extends LitElement
.columns {
width: 100%;
+ height: 100%;
justify-self: stretch;
margin: 1.0em 0 0 0;
min-height: 0;
@@ -146,7 +147,6 @@ class Story extends LitElement
overflow-y: auto;
border-top: 1px solid black;
- width: 100%;
height: 100%;
max-height: calc(100% - 150px - 0.75em);
}
diff --git a/yarn.lock b/yarn.lock
index 564a4a7..ce2b080 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -916,10 +916,10 @@ builtin-status-codes@^3.0.0:
resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8"
integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=
-bulma@^0.8.2:
- version "0.8.2"
- resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.8.2.tgz#5d928f16ed4a84549c2873f95c92c38c69c631a7"
- integrity sha512-vMM/ijYSxX+Sm+nD7Lmc1UgWDy2JcL2nTKqwgEqXuOMU+IGALbXd5MLt/BcjBAPLIx36TtzhzBcSnOP974gcqA==
+bulma@^0.9.0:
+ version "0.9.0"
+ resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.9.0.tgz#948c5445a49e9d7546f0826cb3820d17178a814f"
+ integrity sha512-rV75CJkubNUroAt0qCRkjznZLoaXq/ctfMXsMvKSL84UetbSyx5REl96e8GoQ04G4Tkw0XF3STECffTOQrbzOQ==
bytes@3.0.0:
version "3.0.0"
@@ -3530,6 +3530,11 @@ locate-path@^5.0.0:
dependencies:
p-locate "^4.1.0"
+lodash.throttle@^4.1.1:
+ version "4.1.1"
+ resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4"
+ integrity sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ=
+
lodash@^4.0.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.15, lodash@~4.17.12:
version "4.17.15"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
@@ -5405,6 +5410,13 @@ spdy@^4.0.1:
select-hose "^2.0.0"
spdy-transport "^3.0.0"
+split-me@^1.2.2:
+ version "1.2.2"
+ resolved "https://registry.yarnpkg.com/split-me/-/split-me-1.2.2.tgz#64c1641f455d61662e7674cca4896f4ee4e72792"
+ integrity sha512-wZF3TUNVn/DGoLfMlg3wFbYmh+vhLDSZ6fcIVcVH6xuf/v9Es4aXcynYvEiyO71zniv4TqsUEhQkwPJ1xnz5FQ==
+ dependencies:
+ lodash.throttle "^4.1.1"
+
split-string@^3.0.1, split-string@^3.0.2:
version "3.1.0"
resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2"