Reduce space between collapsed sections

In settings dialogs as well as entities editor.
This commit is contained in:
David Rowe 2016-03-31 15:02:16 +13:00
parent 382b05e00b
commit 13ab854a9d
5 changed files with 8 additions and 5 deletions

View file

@ -406,6 +406,10 @@ input[type=checkbox]:checked + label:hover {
right: 6px;
}
.section-header[collapsed="true"] {
margin-bottom: -22px;
}
.text-group[collapsed="true"] ~ .text-group,
.zone-group[collapsed="true"] ~ .zone-group,
.web-group[collapsed="true"] ~ .web-group,

View file

@ -416,7 +416,6 @@ Window {
anchors.top: assetDirectory.bottom
anchors.bottom: uploadSection.top
anchors.margins: 12
anchors.bottomMargin: 0
anchors.left: parent.left
anchors.right: parent.right
@ -445,7 +444,7 @@ Window {
name: "Upload A File"
spacing: hifi.dimensions.contentSpacing.y
anchors.bottom: parent.bottom
height: 130
height: 92
Item {
height: parent.height

View file

@ -46,7 +46,7 @@ Column {
Item {
id: leadingSpace
width: 1
height: isFirst ? hifi.dimensions.contentSpacing.y : hifi.dimensions.controlInterlineHeight
height: isFirst ? hifi.dimensions.contentSpacing.y : 0
anchors.top: parent.top
}

View file

@ -44,7 +44,7 @@ Preference {
children: [ contentContainer ]
height: contentContainer.height + (root.isLast ? 2 * hifi.dimensions.contentSpacing.y : 0)
height: contentContainer.height + (contentContainer.isCollapsed ? 0 : hifi.dimensions.controlInterlineHeight)
Component.onCompleted: d.buildPreferences();

View file

@ -120,7 +120,7 @@ Window {
}
HifiControls.VerticalSpacer {
height: 2 // Table view draws a little taller than it's height.
height: hifi.dimensions.controlInterlineHeight + 2 // Table view draws a little taller than it's height.
}
}