Skip to content

Commit 98f8a50

Browse files
committed
table controls align
1 parent f350a73 commit 98f8a50

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/utils/crud/components/DataTableClientSide.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
>
1515
<template slot="center">
1616
<!-- Search by fields -->
17-
<v-menu offset-y :close-on-content-click="false" style="margin-right:30px;">
17+
<v-menu offset-y :close-on-content-click="false" style="margin-right:15px;margin-left:15px;">
1818
<v-btn small fab dark slot="activator" class="primary">
1919
<v-icon>filter_list</v-icon>
2020
</v-btn>
@@ -40,7 +40,7 @@
4040
</v-menu>
4141

4242
<!-- Search in table -->
43-
<span style="margin-right:30px;display:inline-block;width:250px;">
43+
<span style="margin-right:15px;margin-left:15px;display:inline-block;width:250px;">
4444
<v-text-field
4545
append-icon="search"
4646
:label="$t('global.datatable.search')"
@@ -53,7 +53,7 @@
5353

5454
<!-- Select statuses (active/inactive) -->
5555
<template v-if="['soft', 'both', 'filter'].includes(deleteMode)">
56-
<span style="margin-right:30px;display:inline-block;width:250px;">
56+
<span style="margin-right:15px;margin-left:15px;display:inline-block;width:250px;">
5757
<v-autocomplete
5858
:label="$t('global.datatable.status.title')"
5959
v-bind:items="statuses"

src/utils/crud/components/DataTableControls.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<v-card-title class="card-title table-controls">
33
<v-layout row wrap>
4-
<v-flex xs12 lg3>
4+
<v-flex xs12 lg3 text-xs-center>
55
<!-- Dialog for creating item -->
66
<v-tooltip top v-if="creator">
77
<v-btn fab dark color="green" @click="create()" slot="activator">
@@ -40,10 +40,10 @@
4040
</v-tooltip>
4141
<slot name="left"></slot>
4242
</v-flex>
43-
<v-flex xs12 lg6 text-xs-left text-lg-center>
43+
<v-flex xs12 lg6 text-xs-center>
4444
<slot name="center"></slot>
4545
</v-flex>
46-
<v-flex xs12 lg3 text-xs-left text-lg-right>
46+
<v-flex xs12 lg3 text-xs-center>
4747
<!-- Refresh table -->
4848
<v-tooltip top>
4949
<v-btn

src/utils/crud/components/DataTableServerSide.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
>
1515
<template slot="center">
1616
<!-- Search by fields -->
17-
<v-menu offset-y :close-on-content-click="false" style="margin-right:30px;">
17+
<v-menu offset-y :close-on-content-click="false" style="margin-right:15px;margin-left:15px;">
1818
<v-btn small fab dark slot="activator" class="primary">
1919
<v-icon>filter_list</v-icon>
2020
</v-btn>
@@ -35,13 +35,13 @@
3535
</v-menu>
3636

3737
<!-- Search in table -->
38-
<span style="margin-right:30px;display:inline-block;width:250px;">
38+
<span style="margin-right:15px;margin-left:15px;display:inline-block;width:250px;">
3939
<v-text-field append-icon="search" :label="$t('global.datatable.search')" single-line hide-details v-model="search" min-width="200" @input="searchItems(true)"></v-text-field>
4040
</span>
4141

4242
<!-- Select statuses (active/inactive) -->
4343
<template v-if="['soft', 'both', 'filter'].includes(deleteMode)">
44-
<span style="margin-right:30px;display:inline-block;width:250px;">
44+
<span style="margin-right:15px;margin-left:15px;display:inline-block;width:250px;">
4545
<v-autocomplete :label="$t('global.datatable.status.title')" v-bind:items="statuses" v-model="selectedStatuses" single-line item-text="text" item-value="value" multiple chips></v-autocomplete>
4646
</span>
4747
</template>

0 commit comments

Comments
 (0)