diff --git a/src/app/project/ontology/ontology.component.scss b/src/app/project/ontology/ontology.component.scss index c73075c20b..6059d064bb 100644 --- a/src/app/project/ontology/ontology.component.scss +++ b/src/app/project/ontology/ontology.component.scss @@ -83,8 +83,10 @@ $width: 340px; margin: 16px 10%; .property { - height: 56px !important; + height: auto; + min-height: 56px !important; margin: 4px 0; + padding: 16px 0; &.odd { background-color: $primary_50; } diff --git a/src/app/project/ontology/property-info/property-info.component.html b/src/app/project/ontology/property-info/property-info.component.html index 26e9b516ca..45cec8d31f 100644 --- a/src/app/project/ontology/property-info/property-info.component.html +++ b/src/app/project/ontology/property-info/property-info.component.html @@ -1,6 +1,6 @@
-
+
{{propType?.icon}} @@ -19,7 +19,7 @@
-
+
{{propDef.id | split: '#':1}} @@ -32,7 +32,7 @@ required - + Property is used in: diff --git a/src/app/project/ontology/property-info/property-info.component.scss b/src/app/project/ontology/property-info/property-info.component.scss index 425ffc3653..9af196f37e 100644 --- a/src/app/project/ontology/property-info/property-info.component.scss +++ b/src/app/project/ontology/property-info/property-info.component.scss @@ -12,27 +12,33 @@ display: flex !important; } -.mat-line.title { - line-height: 1.8; - .mat-icon { - top: 4px; - position: relative; +.mat-line { + &.title { + line-height: 1.8; + .mat-icon { + top: 4px; + position: relative; + } } -} -.mat-line.info { - font-size: small; + &.info { + font-size: small; - .mat-caption { - color: rgba($dark, .7); + .mat-caption { + color: rgba($dark, .7); + } + + .mat-icon { + width: 12px; + height: 12px; + font-size: small; + top: 2px; + position: relative; + } } - .mat-icon { - width: 12px; - height: 12px; - font-size: small; - top: 2px; - position: relative; + &.with-line-break { + white-space: normal; } }