diff --git a/Mac/Components/Browser/Album Detail/AlbumDetailSongTitleView.swift b/Mac/Components/Browser/Album Detail/AlbumDetailSongTitleView.swift index 5a17e41..f3849f8 100644 --- a/Mac/Components/Browser/Album Detail/AlbumDetailSongTitleView.swift +++ b/Mac/Components/Browser/Album Detail/AlbumDetailSongTitleView.swift @@ -11,14 +11,9 @@ import AppKit class AlbumDetailSongTitleView: NSTableCellView { @IBOutlet var songTitle: NSTextField! @IBOutlet var songArtist: NSTextField! - var collapseArtist: NSLayoutConstraint! func setShowArtist(_ show: Bool) { - if collapseArtist == nil { - collapseArtist = songArtist?.heightAnchor.constraint(equalToConstant: 0.0) - } - - collapseArtist.isActive = !show + songArtist.isHidden = !show } func setSong(_ song: Song) { diff --git a/Mac/Components/Browser/Album Detail/AlbumDetailView.xib b/Mac/Components/Browser/Album Detail/AlbumDetailView.xib index 19a2e17..8e5aef6 100644 --- a/Mac/Components/Browser/Album Detail/AlbumDetailView.xib +++ b/Mac/Components/Browser/Album Detail/AlbumDetailView.xib @@ -1,8 +1,8 @@ - + - + @@ -17,12 +17,12 @@ - - + + - + @@ -33,7 +33,7 @@ - + @@ -41,7 +41,7 @@ - + @@ -53,22 +53,21 @@ - - + + - + - - - + + + - @@ -80,7 +79,7 @@ - + @@ -101,7 +100,7 @@ - + @@ -128,7 +127,6 @@ - @@ -140,33 +138,49 @@ - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + @@ -177,7 +191,6 @@ - @@ -231,7 +244,7 @@