This commit is contained in:
Julian Freeman
2025-12-01 08:54:10 -04:00
parent 18f023e6e3
commit 799c65a3d7
2 changed files with 39 additions and 2 deletions

View File

@@ -5,12 +5,22 @@ import { useSettingsStore } from '../stores/settingsStore';
import { Codemirror } from 'vue-codemirror';
import { json } from '@codemirror/lang-json';
import { oneDark } from '@codemirror/theme-one-dark';
import { EditorView } from '@codemirror/view';
import { EditorView } from '@codemirror/view'; // Import EditorView
const store = useRequestStore();
const settings = useSettingsStore();
const extensions = [json(), oneDark, EditorView.editable.of(false)];
const transparentTheme = EditorView.theme({
"&": {
backgroundColor: "transparent !important",
height: "100%"
},
".cm-gutters": {
backgroundColor: "transparent !important"
}
});
const extensions = [json(), oneDark, transparentTheme, EditorView.editable.of(false)];
const formattedBody = computed(() => {
if (!store.activeRequest.response) return '';

View File

@@ -9,3 +9,30 @@ body {
#app {
@apply h-full w-full;
}
/* Custom Scrollbar Styles */
/* For Webkit browsers (Chrome, Safari) */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #1e293b; /* slate-800 */
}
::-webkit-scrollbar-thumb {
background: #475569; /* slate-600 */
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #64748b; /* slate-500 */
}
/* For Firefox (requires 'scrollbar-width' and 'scrollbar-color' on elements) */
/* Applying to all elements for broader coverage */
* {
scrollbar-width: thin;
scrollbar-color: #475569 #1e293b; /* thumb track */
}