diff --git a/components/lib/inplace/style/InplaceStyle.js b/components/lib/inplace/style/InplaceStyle.js index 9d78a0a09..ba51d4969 100644 --- a/components/lib/inplace/style/InplaceStyle.js +++ b/components/lib/inplace/style/InplaceStyle.js @@ -2,8 +2,9 @@ import BaseStyle from 'primevue/base/style'; const theme = ({ dt }) => ` .p-inplace-display { - display: inline; + display: inline-block; cursor: pointer; + border: 1px solid transparent; padding: ${dt('inplace.padding')}; border-radius: ${dt('inplace.border.radius')}; transition: background ${dt('inplace.transition.duration')}, color ${dt('inplace.transition.duration')}, outline-color ${dt('inplace.transition.duration')}, box-shadow ${dt('inplace.transition.duration')}; @@ -22,7 +23,7 @@ const theme = ({ dt }) => ` } .p-inplace-content { - display: inline; + display: block; } `; diff --git a/doc/inplace/ImageDoc.vue b/doc/inplace/ImageDoc.vue index 0d76ce117..9b35aecb3 100644 --- a/doc/inplace/ImageDoc.vue +++ b/doc/inplace/ImageDoc.vue @@ -3,13 +3,15 @@

Any content such as an image can be placed inside an Inplace.

- +
@@ -24,11 +26,13 @@ export default { basic: ` `, @@ -37,11 +41,13 @@ export default {
@@ -55,11 +61,13 @@ export default {
diff --git a/doc/inplace/InputDoc.vue b/doc/inplace/InputDoc.vue index 7e402389a..81ffb0b8c 100644 --- a/doc/inplace/InputDoc.vue +++ b/doc/inplace/InputDoc.vue @@ -1,6 +1,6 @@ @@ -28,8 +30,10 @@ export default { {{ text || 'Click to Edit' }} `, @@ -41,8 +45,10 @@ export default { {{ text || 'Click to Edit' }} @@ -66,8 +72,10 @@ export default { {{ text || 'Click to Edit' }} diff --git a/doc/inplace/LazyDoc.vue b/doc/inplace/LazyDoc.vue index 45cd0f3a1..0155c5287 100644 --- a/doc/inplace/LazyDoc.vue +++ b/doc/inplace/LazyDoc.vue @@ -1,6 +1,6 @@