diff --git a/src/components/DocumentView/OpenAPI/style.css b/src/components/DocumentView/OpenAPI/style.css index 1f7bcde360..5f618fcea8 100644 --- a/src/components/DocumentView/OpenAPI/style.css +++ b/src/components/DocumentView/OpenAPI/style.css @@ -106,8 +106,14 @@ @apply mt-3; } +.openapi-schema-name { + /* To make double click on the property name select only the name, + we disable selection on the parent and re-enable it on the children. */ + @apply select-none; +} + .openapi-schema-propertyname { - @apply font-medium text-base text-dark/10 dark:text-light/10; + @apply select-all font-medium text-base text-dark/10 dark:text-light/10; } .openapi-schema-required { @@ -115,7 +121,7 @@ } .openapi-schema-type { - @apply font-mono ml-3 text-base text-dark-4/8 dark:text-light-4; + @apply font-mono ml-3 text-base text-dark-4/8 dark:text-light-4 select-text; } .openapi-schema-type:only-child {