Skip to content

Commit

Permalink
Merge pull request #15352 from Godmartinz/mobile_breakpoint
Browse files Browse the repository at this point in the history
Fixed Mobile misalignment of info on Assets and Users view pages
  • Loading branch information
snipe authored Aug 22, 2024
2 parents 4635a6e + 963911f commit bc9ea5a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
18 changes: 18 additions & 0 deletions resources/assets/less/overrides.less
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,24 @@ th.css-component > .th-inner::before
margin-top:50px
}
}
@media screen and (max-width: 992px){
.info-stack-container {
display: flex;
flex-direction: column;
}
.col-md-3.col-xs-12.col-sm-push-9.info-stack{
left:auto;
order:1;
}
.col-md-9.col-xs-12.col-sm-pull-3.info-stack{
right:auto;
order:2;
}
.info-stack-container > .col-md-9.col-xs-12.col-sm-pull-3.info-stack > .row-new-striped > .row > .col-sm-2{
width:auto;
float:none;
}
}
@media screen and (max-width: 1318px) and (min-width: 1200px){
.admin.box{
height:170px;
Expand Down
7 changes: 4 additions & 3 deletions resources/views/hardware/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@
</div>
</div>
@endif

<div class="info-stack-container">
<!-- Start button column -->
<div class="col-md-3 col-xs-12 col-sm-push-9">
<div class="col-md-3 col-xs-12 col-sm-push-9 info-stack">

<div class="col-md-12 text-center">
@if (($asset->image) || (($asset->model) && ($asset->model->image!='')))
Expand Down Expand Up @@ -334,7 +334,7 @@

<!-- End button column -->

<div class="col-md-9 col-xs-12 col-sm-pull-3">
<div class="col-md-9 col-xs-12 col-sm-pull-3 info-stack">

<div class="row-new-striped">

Expand Down Expand Up @@ -1078,6 +1078,7 @@

</div> <!--/end striped container-->
</div> <!-- end col-md-9 -->
</div><!-- end info-stack-container -->
</div> <!--/.row-->
</div><!-- /.tab-pane -->

Expand Down
7 changes: 4 additions & 3 deletions resources/views/users/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@
</div>
</div>
@endif

<div class="info-stack-container">
<!-- Start button column -->
<div class="col-md-3 col-xs-12 col-sm-push-9">
<div class="col-md-3 col-xs-12 col-sm-push-9 info-stack">



Expand Down Expand Up @@ -308,7 +308,7 @@

<!-- End button column -->

<div class="col-md-9 col-xs-12 col-sm-pull-3">
<div class="col-md-9 col-xs-12 col-sm-pull-3 info-stack">

<div class="row-new-striped">

Expand Down Expand Up @@ -767,6 +767,7 @@
@endif
</div> <!--/end striped container-->
</div> <!-- end col-md-9 -->
</div><!-- end info-stack-container-->
</div> <!--/.row-->
</div><!-- /.tab-pane -->

Expand Down

0 comments on commit bc9ea5a

Please sign in to comment.