mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix: fix inline-edit input
This commit is contained in:
parent
ffcbaedf18
commit
206baebf77
|
@ -28,23 +28,22 @@ export default defineComponent({
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
$--horiz-padding: 15px;
|
$--horiz-padding: 15px;
|
||||||
|
|
||||||
input {
|
.el-input {
|
||||||
border: 1px solid transparent;
|
|
||||||
padding: 0 $--horiz-padding - 2px; // -2px for borders
|
|
||||||
}
|
|
||||||
|
|
||||||
div.el-input {
|
|
||||||
display: inline-grid;
|
display: inline-grid;
|
||||||
font: inherit;
|
font: inherit;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
|
|
||||||
&::after,
|
:deep(input) {
|
||||||
input {
|
border: 1px solid transparent;
|
||||||
|
padding: 0 $--horiz-padding - 2px; // -2px for borders
|
||||||
|
width: 100%;
|
||||||
grid-area: 1 / 2;
|
grid-area: 1 / 2;
|
||||||
font: inherit;
|
font: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
|
grid-area: 1 / 2;
|
||||||
|
font: inherit;
|
||||||
content: attr(data-value) ' ';
|
content: attr(data-value) ' ';
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -56,9 +55,13 @@ div.el-input {
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
input:not(:focus) {
|
:deep(input):not(:focus) {
|
||||||
border: 1px solid var(--color-text-lighter);
|
border: 1px solid var(--color-text-lighter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:deep(input):focus {
|
||||||
|
border: 1px solid var(--color-secondary);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue