Browse Source

Prevent navigation buttons from scrolling

master
Immanuel Onyeka 3 years ago
parent
commit
0189c5aaeb
2 changed files with 10 additions and 1 deletions
  1. +5
    -0
      resources/js/panel/orders.vue
  2. +5
    -1
      resources/scss/main.scss

+ 5
- 0
resources/js/panel/orders.vue View File

@@ -23,6 +23,8 @@
days.</p><div></div></div> days.</p><div></div></div>
<section class="history-pane"> <section class="history-pane">
<h4>Order History</h4> <h4>Order History</h4>

<div class="table-scroller">
<table> <table>
<thead><th>Date</th><th>ID</th><th>Name</th><th>Status</th> <thead><th>Date</th><th>ID</th><th>Name</th><th>Status</th>
<th>Quantity</th></thead> <th>Quantity</th></thead>
@@ -40,11 +42,14 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>

<img @click="moveHistory(false)" class="nav-btn left" <img @click="moveHistory(false)" class="nav-btn left"
src="../../images/arrow-left-circle-fill.svg" alt=""/> src="../../images/arrow-left-circle-fill.svg" alt=""/>
<p class="nav-legend">{{historyPage}}/{{Math.ceil(orders.length/10)}}</p> <p class="nav-legend">{{historyPage}}/{{Math.ceil(orders.length/10)}}</p>
<img @click="moveHistory(true)" class="nav-btn right" <img @click="moveHistory(true)" class="nav-btn right"
src="../../images/arrow-right-circle-fill.svg" alt=""/> src="../../images/arrow-right-circle-fill.svg" alt=""/>

</section> </section>


<order-item v-if="selected" @close="close" :selected="selected" <order-item v-if="selected" @close="close" :selected="selected"


+ 5
- 1
resources/scss/main.scss View File

@@ -794,7 +794,6 @@ section.recent-pane, section.history-pane{
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
height: fit-content; height: fit-content;
overflow-x: scroll;


h4 { h4 {
width: 100%; width: 100%;
@@ -916,6 +915,11 @@ section.recent-pane, section.history-pane{
min-width: 30em; min-width: 30em;
} }


.table-scroller {
width: 100%;
overflow-x: scroll;
}

} }


.actions { .actions {


Loading…
Cancel
Save