Skip to content

Commit 5f791f1

Browse files
committed
Reduced spacing in UI
1 parent f156131 commit 5f791f1

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

packages/frontend/src/views/App.vue

+32-32
Original file line numberDiff line numberDiff line change
@@ -25,48 +25,41 @@ onMounted(() => {
2525
</script>
2626

2727
<template>
28-
<div class="h-full flex flex-col gap-4">
28+
<div class="h-full flex flex-col gap-2">
2929
<!-- Top Pane -->
3030
<div
31-
id="ici"
3231
class="w-full flex-1 min-h-0 rounded-[0.25rem] shadow-md bg-surface-0 dark:bg-surface-800 text-surface-700 dark:text-surface-0"
3332
>
3433
<div class="h-full flex flex-col">
3534
<!-- Header Section -->
36-
<div class="content-center mb-4">
37-
<h3 class="text-2xl ml-1">QuickSSRF</h3>
35+
<div class="content-center p-4 flex items-center justify-between">
36+
<h3 class="text-xl">QuickSSRF</h3>
3837
</div>
3938

4039
<!-- Content Section -->
4140
<div class="flex flex-col h-full min-h-0">
42-
<!-- Actions Section -->
43-
<div class="flex-none flex items-center justify-between mb-4 m-4">
44-
<!-- Left-aligned Buttons -->
45-
<div class="flex gap-4 m-4">
46-
<Button
47-
label="Generate Link"
48-
style="width: 200px"
49-
@click="onGenerateClick"
50-
/>
51-
<Button label="Poll" style="width: 200px" @click="onManualPoll" />
52-
<Button
53-
label="Clear Data"
54-
style="width: 200px"
55-
@click="onClearData"
56-
/>
57-
</div>
58-
<!-- Right-aligned Button -->
59-
<button
60-
id="star-project"
61-
class="p-button p-button-rounded"
62-
@click="onSupport"
63-
>
64-
⭐ STAR ON GITHUB
65-
</button>
66-
</div>
6741
<!-- Request Logs Section -->
68-
<div class="flex-1 min-h-5">
69-
<h3 class="text-lg mb-2">Request Logs</h3>
42+
<div class="flex-1">
43+
<div class="flex items-center justify-between p-4 pt-0">
44+
<!-- Actions Section -->
45+
<div class="flex-1 flex items-center justify-between">
46+
<!-- Left-aligned Buttons -->
47+
<div class="flex gap-2">
48+
<Button label="Generate URL" @click="onGenerateClick" />
49+
<Button severity="contrast" label="Refresh" icon="fas fa-sync" @click="onManualPoll" />
50+
<Button severity="contrast" label="Clear" @click="onClearData" />
51+
</div>
52+
53+
<!-- Right-aligned Button -->
54+
<Button
55+
label="STAR ON GITHUB"
56+
severity="contrast"
57+
icon="fas fa-star"
58+
@click="onSupport"
59+
/>
60+
</div>
61+
</div>
62+
7063
<!-- DataTable directly scrollable -->
7164
<DataTable
7265
v-model:selection="selectedRow"
@@ -83,14 +76,21 @@ onMounted(() => {
8376
<Column field="type" header="Type" sortable />
8477
<Column field="payload" header="Payload" sortable />
8578
<Column field="source" header="Source" sortable />
79+
80+
<template #empty>
81+
<div class="flex flex-col justify-center items-center gap-2">
82+
<h3 class="text-surface-300 text-xl">Request Logs</h3>
83+
<p class="text-surface-300">No data found</p>
84+
</div>
85+
</template>
8686
</DataTable>
8787
</div>
8888
</div>
8989
</div>
9090
</div>
9191

9292
<!-- Horizontal Split Below -->
93-
<div class="w-full flex flex-1 gap-4 overflow-hidden">
93+
<div class="w-full flex flex-1 gap-2 overflow-hidden">
9494
<!-- Request Component -->
9595
<div ref="requestEl" class="h-full w-1/2"></div>
9696
<!-- Response Component -->

packages/frontend/src/views/useLogic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const useLogic = () => {
123123
console.log(clientService);
124124
if (url) {
125125
await clipboard.copy(url);
126-
sdk.window.showToast("Copy to clipboard.", { variant: "success" });
126+
sdk.window.showToast("Copied URL to clipboard.", { variant: "success" });
127127
}
128128
};
129129

0 commit comments

Comments
 (0)