diff --git a/assets/css/styles.scss b/assets/css/styles.scss index 0ea7527cc..6d70fe14a 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -12,16 +12,23 @@ html { ::-webkit-scrollbar { width: 8px; height: 8px; + border-radius: 8px; + background-color: var(--bg-dark-color); + visibility: hidden; + + &:hover { + visibility: visible; + } } ::-webkit-scrollbar-thumb { background-color: var(--fg-light-color); border-radius: 8px; border: 2px solid var(--bg-color); -} -::-webkit-scrollbar-thumb:hover { - background-color: var(--fg-color); + &:hover { + background-color: var(--fg-color); + } } ::placeholder { @@ -658,10 +665,6 @@ ol li { background-color: var(--err-color); } -.virtual-list::-webkit-scrollbar { - width: 0; -} - fieldset#history { .method-list-item { position: relative; diff --git a/components/history.vue b/components/history.vue index 20c280179..e4b34cc62 100644 --- a/components/history.vue +++ b/components/history.vue @@ -2,110 +2,93 @@ - - + +
    +
    +
  • + + +
  • +
    +
  • +
  • - - {{entry.status}} + + {{entry.status}}
  • @@ -125,24 +108,12 @@
  • -
  • -
  • @@ -161,12 +132,7 @@
  • - @@ -201,10 +167,13 @@ } } - .smooth-enter-active, .smooth-leave-active { + .smooth-enter-active, + .smooth-leave-active { transition: all 0.2s; } - .smooth-enter, .smooth-leave-to { + + .smooth-enter, + .smooth-leave-to { opacity: 0; } @@ -213,12 +182,15 @@ min-height: 200px; } } + diff --git a/pages/index.vue b/pages/index.vue index 755d4463e..1791060b6 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -64,7 +64,7 @@ v-model="preRequestScript" v-textarea-auto-height="preRequestScript" spellcheck="false" - placeholder="pw.environment.set('variable', 'value');" + placeholder="pw.env.set('variable', 'value');" >
@@ -1185,11 +1185,12 @@ export default { behavior: "smooth" }); }, - handleUseHistory({ label, method, url, path, preRequestScript }) { + handleUseHistory({ label, method, url, path, usesScripts, preRequestScript }) { this.label = label; this.method = method; this.url = url; this.path = path; + this.showPreRequestScript = usesScripts; this.preRequestScript = preRequestScript; this.scrollInto("request"); }, @@ -1371,7 +1372,8 @@ export default { method: this.method, url: this.url, path: this.path, - usesScripts: Boolean(this.preRequestScript) + usesScripts: Boolean(this.preRequestScript), + preRequestScript: this.preRequestScript }; this.$refs.historyComponent.addEntry(entry); return;