Skip to content

Commit 2db7fcd

Browse files
committed
More stuff for FileDrawer
1 parent a0036b0 commit 2db7fcd

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

panel/src/components/Drawers/FileDrawer.vue

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@
88
@tab="$emit('tab', $event)"
99
>
1010
<template #header>
11-
<k-form-controls :has-diff="true" size="xs" />
11+
<k-form-controls
12+
:editor="editor"
13+
:has-diff="hasDiff"
14+
:is-locked="isLocked"
15+
:is-processing="isSaving"
16+
:modified="modified"
17+
size="xs"
18+
@discard="onDiscard"
19+
@submit="onSubmit"
20+
/>
1221
</template>
1322

1423
<k-file-preview
@@ -41,6 +50,7 @@ import FileView from "@/components/Views/Files/FileView.vue";
4150
export default {
4251
extends: FileView,
4352
mixins: [Drawer],
53+
feature: "drawer",
4454
props: {
4555
tab: {
4656
type: Object,
@@ -54,3 +64,17 @@ export default {
5464
emits: ["cancel", "input", "submit", "tab"]
5565
};
5666
</script>
67+
68+
<style>
69+
.k-file-drawer .k-drawer-header {
70+
position: sticky;
71+
top: 0;
72+
z-index: var(--z-toolbar);
73+
}
74+
75+
.k-file-drawer .k-form-controls-button {
76+
font-size: var(--text-xs);
77+
--button-rounded: 3px;
78+
--icon-size: 1rem;
79+
}
80+
</style>

0 commit comments

Comments
 (0)