mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Hide "Action" column when toggling "Details" (#3747)
Turning on "Details" in Repo Overview will now hide the "Action" column to improve display on smaller screens. Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
parent
77a002f584
commit
3846dd96a4
|
@ -232,6 +232,7 @@ function RepoOverViewHelper() {
|
||||||
this.isDetailsDisplayed = false;
|
this.isDetailsDisplayed = false;
|
||||||
this.isOnlyFavoritesDisplayed = false;
|
this.isOnlyFavoritesDisplayed = false;
|
||||||
this.detailCssClass = findStyleSheetByName(".ro-detail");
|
this.detailCssClass = findStyleSheetByName(".ro-detail");
|
||||||
|
this.actionCssClass = findStyleSheetByName(".ro-action");
|
||||||
var icon = document.getElementById("icon-filter-detail");
|
var icon = document.getElementById("icon-filter-detail");
|
||||||
this.toggleFilterIcon(icon, this.isDetailsDisplayed);
|
this.toggleFilterIcon(icon, this.isDetailsDisplayed);
|
||||||
icon = document.getElementById("icon-filter-favorite");
|
icon = document.getElementById("icon-filter-favorite");
|
||||||
|
@ -249,6 +250,7 @@ RepoOverViewHelper.prototype.toggleItemsDetail = function(forceDisplay){
|
||||||
if (this.detailCssClass) {
|
if (this.detailCssClass) {
|
||||||
this.isDetailsDisplayed = forceDisplay || !this.isDetailsDisplayed;
|
this.isDetailsDisplayed = forceDisplay || !this.isDetailsDisplayed;
|
||||||
this.detailCssClass.style.display = this.isDetailsDisplayed ? "" : "none";
|
this.detailCssClass.style.display = this.isDetailsDisplayed ? "" : "none";
|
||||||
|
this.actionCssClass.style.display = this.isDetailsDisplayed ? "none" : "";
|
||||||
var icon = document.getElementById("icon-filter-detail");
|
var icon = document.getElementById("icon-filter-detail");
|
||||||
this.toggleFilterIcon(icon, this.isDetailsDisplayed);
|
this.toggleFilterIcon(icon, this.isDetailsDisplayed);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user