diff --git a/domain/label/store.go b/domain/label/store.go index eb7699b3..c659a631 100644 --- a/domain/label/store.go +++ b/domain/label/store.go @@ -89,11 +89,11 @@ func (s Store) Delete(ctx domain.RequestContext, id string) (rows int64, err err } // RemoveReference clears space.labelID for given label. -func (s Store) RemoveReference(ctx domain.RequestContext, spaceID string) (err error) { +func (s Store) RemoveReference(ctx domain.RequestContext, labelID string) (err error) { _, err = ctx.Transaction.Exec(s.Bind(`UPDATE dmz_space SET c_labelid='', c_revised=? - WHERE c_orgid=? AND c_refid=?`), - time.Now().UTC(), ctx.OrgID, spaceID) + WHERE c_orgid=? AND c_labelid=?`), + time.Now().UTC(), ctx.OrgID, labelID) if err == sql.ErrNoRows { err = nil diff --git a/domain/store/storer.go b/domain/store/storer.go index 3d058fa6..8ffdb12f 100644 --- a/domain/store/storer.go +++ b/domain/store/storer.go @@ -311,5 +311,5 @@ type LabelStorer interface { Get(ctx domain.RequestContext) (l []label.Label, err error) Update(ctx domain.RequestContext, l label.Label) (err error) Delete(ctx domain.RequestContext, id string) (rows int64, err error) - RemoveReference(ctx domain.RequestContext, spaceID string) (err error) + RemoveReference(ctx domain.RequestContext, labelID string) (err error) } diff --git a/gui/app/styles/core/layout/master-internal.scss b/gui/app/styles/core/layout/master-internal.scss index 7e3eebc0..adf9a40f 100644 --- a/gui/app/styles/core/layout/master-internal.scss +++ b/gui/app/styles/core/layout/master-internal.scss @@ -13,6 +13,7 @@ padding: 10px; } } + .master-sidebar-container { display: block; height: auto; @@ -36,8 +37,6 @@ justify-content: space-between; flex-wrap: wrap; width: 100%; - // overflow-x: hidden; - // overflow-y: auto; > .nav-options { > .selected { @@ -130,7 +129,7 @@ } // Tablet starts around 700px -@media (min-width: $display-break-1) and (min-height: 650px) { +@media (min-width: $display-break-1) { .master-container { display: grid; grid-template-columns: 240px auto;