diff --git a/assets/css/styles.scss b/assets/css/styles.scss
index f288d59c6..220f9aa08 100644
--- a/assets/css/styles.scss
+++ b/assets/css/styles.scss
@@ -671,9 +671,12 @@ fieldset#history {
span {
position: absolute;
- top: 12px;
- right: 12px;
+ top: 8px;
+ right: 8px;
font-family: 'Roboto Mono', monospace;
+ background-color: var(--bg-color);
+ padding: 4px 8px;
+ border-radius: 8px;
}
}
}
diff --git a/components/history.vue b/components/history.vue
index e4b34cc62..8c322d746 100644
--- a/components/history.vue
+++ b/components/history.vue
@@ -9,7 +9,12 @@
-
-
+ -
+
+ http
+ code
@@ -177,9 +186,13 @@
opacity: 0;
}
+ .stared {
+ color: #F8E81C !important;
+ }
+
@media (max-width: 720px) {
.virtual-list.filled {
- min-height: 200px;
+ min-height: 320px;
}
}
@@ -348,8 +361,12 @@
this.history = byDuration;
this.reverse_sort_duration = !this.reverse_sort_duration;
},
- toggleCollapse: function() {
+ toggleCollapse() {
this.show = !this.show
+ },
+ toggleStar(index) {
+ this.history[index]["star"] = !this.history[index]["star"];
+ updateOnLocalStorage("history", this.history);
}
}
};
diff --git a/pages/index.vue b/pages/index.vue
index 075392f48..732b68d16 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1352,7 +1352,8 @@ export default {
path: this.path,
usesScripts: Boolean(this.preRequestScript),
preRequestScript: this.preRequestScript,
- duration
+ duration,
+ star: false
};
this.$refs.historyComponent.addEntry(entry);
})();