Skip to content

Commit

Permalink
MID-8504 partial improvement for account list on resource details pag…
Browse files Browse the repository at this point in the history
…e - buttons overflow, table still breaks the layout
  • Loading branch information
1azyman committed Apr 5, 2023
1 parent 839ad91 commit d6d94c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<!DOCTYPE html>
<html xmlns:wicket="http://wicket.apache.org">
<wicket:panel>
<div class="d-flex flex-wrap" wicket:id="topButtonsContainer">
<div wicket:id="topButtons"/>
<div class="d-flex flex-wrap gap-3 mt-3" wicket:id="topButtonsContainer">
<a class="btn btn-primary p-3 flex-basis-0 flex-fill" wicket:id="topButtons"/>
</div>
<div class="d-flex flex-wrap justify-content-between pl-4">
<div class="d-flex flex-wrap gap-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ public void onClick(AjaxRequestTarget target) {
};
attrMappingButton.setOutputMarkupId(true);
attrMappingButton.showTitleAsLabel(true);
attrMappingButton.add(AttributeAppender.append("class", "btn btn-primary p-3 flex-basis-0 flex-fill mr-3"));
attrMappingButton.add(new VisibleBehaviour(() -> isTopTableButtonsVisible()));
topButtons.add(attrMappingButton);
}
Expand All @@ -389,7 +388,6 @@ public void onClick(AjaxRequestTarget target) {
};
synchConfButton.setOutputMarkupId(true);
synchConfButton.showTitleAsLabel(true);
synchConfButton.add(AttributeAppender.append("class", "btn btn-primary p-3 flex-fill flex-basis-0 mr-3"));
synchConfButton.add(new VisibleBehaviour(() -> isTopTableButtonsVisible()));
topButtons.add(synchConfButton);
}
Expand All @@ -412,7 +410,6 @@ public void onClick(AjaxRequestTarget target) {
};
synchConfButton.setOutputMarkupId(true);
synchConfButton.showTitleAsLabel(true);
synchConfButton.add(AttributeAppender.append("class", "btn btn-primary p-3 flex-fill flex-basis-0 mr-3"));
synchConfButton.add(new VisibleBehaviour(() -> isTopTableButtonsVisible()));
topButtons.add(synchConfButton);
}
Expand All @@ -435,7 +432,6 @@ public void onClick(AjaxRequestTarget target) {
};
correlationConfButton.setOutputMarkupId(true);
correlationConfButton.showTitleAsLabel(true);
correlationConfButton.add(AttributeAppender.append("class", "btn btn-primary p-3 flex-fill flex-basis-0 mr-3"));
correlationConfButton.add(new VisibleBehaviour(() -> isTopTableButtonsVisible()));
topButtons.add(correlationConfButton);
}
Expand All @@ -458,7 +454,6 @@ public void onClick(AjaxRequestTarget target) {
};
capabilitiesConfButton.setOutputMarkupId(true);
capabilitiesConfButton.showTitleAsLabel(true);
capabilitiesConfButton.add(AttributeAppender.append("class", "btn btn-primary p-3 flex-fill flex-basis-0 mr-3"));
capabilitiesConfButton.add(new VisibleBehaviour(() -> isTopTableButtonsVisible()));
topButtons.add(capabilitiesConfButton);
}
Expand All @@ -481,7 +476,6 @@ public void onClick(AjaxRequestTarget target) {
};
credentialsConfButton.setOutputMarkupId(true);
credentialsConfButton.showTitleAsLabel(true);
credentialsConfButton.add(AttributeAppender.append("class", "btn btn-primary p-3 flex-basis-0 flex-fill mr-3"));
credentialsConfButton.add(new VisibleBehaviour(() -> isTopTableButtonsVisible()));
topButtons.add(credentialsConfButton);
}
Expand All @@ -504,7 +498,6 @@ public void onClick(AjaxRequestTarget target) {
};
activationButton.setOutputMarkupId(true);
activationButton.showTitleAsLabel(true);
activationButton.add(AttributeAppender.append("class", "btn btn-primary p-3 flex-basis-0 flex-fill mr-3"));
activationButton.add(new VisibleBehaviour(() -> isTopTableButtonsVisible()));
topButtons.add(activationButton);
}
Expand All @@ -527,7 +520,6 @@ public void onClick(AjaxRequestTarget target) {
};
associationConfButton.setOutputMarkupId(true);
associationConfButton.showTitleAsLabel(true);
associationConfButton.add(AttributeAppender.append("class", "btn btn-primary p-3 flex-basis-0 flex-fill"));
associationConfButton.add(new VisibleBehaviour(() -> isTopTableButtonsVisible()));
topButtons.add(associationConfButton);
}
Expand Down

0 comments on commit d6d94c6

Please sign in to comment.