Skip to content

Commit 1b8a668

Browse files
committed
apply code review suggestion
1 parent 996fa77 commit 1b8a668

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/Frontend/src/components/CopyToClipboard.vue

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22
import { Tippy, TippyComponent } from "vue-tippy";
33
import { useTemplateRef } from "vue";
44
5-
const props = defineProps({
6-
value: {
7-
type: String,
8-
required: true,
9-
},
10-
isIconOnly: {
11-
type: Boolean,
12-
default: false, // Default value
13-
},
14-
});
5+
const props = withDefaults(
6+
defineProps<{
7+
value: string;
8+
isIconOnly?: boolean;
9+
}>(),
10+
{ isIconOnly: false }
11+
);
1512
1613
const tippyRef = useTemplateRef<TippyComponent | null>("tippyRef");
1714
let timeoutId: number;

src/Frontend/src/components/messages/HeadersView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ const toggleHover = (index: number, state: boolean) => {
3434
.headercopy {
3535
display: flex;
3636
align-items: top;
37-
gap: 10px;
37+
gap: 0.4rem;
3838
}
3939
</style>

0 commit comments

Comments
 (0)