Skip to content

Commit b47a74a

Browse files
authored
Merge pull request #9 from mrleblanc101/main
Fix styles
2 parents 4b5ef21 + 5a1e433 commit b47a74a

File tree

6 files changed

+6058
-12
lines changed

6 files changed

+6058
-12
lines changed

dist/css/field.css

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
/* Nova Field CSS */
12

dist/js/field.js

+6,046-2
Large diffs are not rendered by default.

nova-mix.js

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class NovaExtension {
2121
webpackConfig(webpackConfig) {
2222
webpackConfig.externals = {
2323
vue: 'Vue',
24+
'laravel-nova': 'LaravelNova',
2425
}
2526

2627
webpackConfig.resolve.alias = {

resources/js/components/Form/KeyValueField.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<DefaultField
33
:field="currentField"
44
:errors="errors"
5-
:full-width-content="true"
5+
:full-width-content="mode === 'modal'"
66
:show-help-text="showHelpText"
77
>
88
<template #field>

resources/js/components/ValuesHeader.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class="bg-gray-100 dark:bg-gray-800 rounded-t-lg flex border-b border-gray-300 dark:border-gray-700"
44
>
55
<div
6-
class="bg-clip w-48 uppercase font-bold text-xs text-gray-500 tracking-wide px-3 py-3"
6+
class="bg-clip w-48 uppercase font-bold text-xxs text-gray-500 tracking-wide px-3 py-2"
77
>
88
{{ valueLabel }}
99
</div>

resources/js/components/ValuesItem.vue

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<template>
22
<div v-if="isNotObject" class="flex items-center key-value-item">
3-
<div class="flex flex-grow border-b border-gray-300 dark:border-gray-700 key-value-fields"
4-
:class="{ 'bg-gray-50': readOnlyKeys || !isEditable }"
3+
<div class="flex flex-grow border-b border-gray-200 dark:border-gray-700 key-value-fields"
54
>
65
<textarea
76
:dusk="`key-value-key-${index}`"
87
v-model="item.key"
98
@focus="handleKeyFieldFocus"
109
ref="keyField"
10+
rows="1"
1111
type="text"
12-
class="font-mono text-sm resize-none block min-h-input w-full form-control form-input form-input-row py-4 text-90 dark:text-gray-400 bg-clip-border"
13-
:disabled="!isEditable || readOnlyKeys"
12+
class="font-mono text-xs block w-full px-3 py-3 text-90 dark:text-gray-400"
13+
:readonly="!isEditable || readOnlyKeys"
1414
style="background-clip: border-box"
1515
:class="{
16-
'bg-white dark:bg-gray-800': !isEditable || readOnlyKeys,
17-
'hover:bg-20 focus:bg-white dark:bg-gray-900 dark:focus:bg-gray-900':
18-
isEditable && !readOnlyKeys,
19-
}"
16+
'bg-white dark:bg-gray-800 focus:outline-none': !isEditable,
17+
'hover:bg-20 focus:bg-white dark:bg-gray-900 dark:focus:bg-gray-900 focus:outline-none focus:ring focus:ring-inset':
18+
isEditable,
19+
}"
2020
/>
2121
</div>
2222

0 commit comments

Comments
 (0)