Skip to content

Commit

Permalink
CSS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Apr 30, 2024
1 parent e978bd8 commit 06633ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion panel/src/components/Dialogs/Elements/UploadPreview.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<a :href="url" class="k-upload-item-preview" target="_blank">
<a :href="url" target="_blank">
<k-image v-if="isPreviewable" :cover="true" :src="url" back="pattern" />
<k-icon-frame
v-else
Expand Down
2 changes: 2 additions & 0 deletions panel/src/components/Dialogs/UploadDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
:mime="file.type"
:url="file.url"
color="white"
class="k-upload-item-preview"
/>

<k-input
Expand Down Expand Up @@ -158,6 +159,7 @@ export default {
grid-area: input;
font-size: var(--text-sm);
border-bottom: 1px solid var(--color-light);
border-start-end-radius: var(--rounded);
}
.k-upload-item-input.k-input:focus-within {
outline: 2px solid var(--color-focus);
Expand Down
5 changes: 5 additions & 0 deletions panel/src/components/Dialogs/UploadReplaceDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
:icon="original.image?.icon"
:url="file.url"
:mime="file.type"
class="k-upload-item-preview"
/>
<k-input
Expand Down Expand Up @@ -108,6 +109,10 @@ export default {
overflow: hidden;
}
.k-upload-item-input {
--input-color-back: var(--color-white) !important;
}
.k-upload-replace-dialog .k-upload-item {
flex-grow: 1;
}
Expand Down

0 comments on commit 06633ca

Please sign in to comment.