Skip to content

Commit 8c28248

Browse files
committed
Enhance button styles across components for improved UI consistency
1 parent 22a27fa commit 8c28248

File tree

6 files changed

+28
-28
lines changed

6 files changed

+28
-28
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<template lang="pug">
2-
q-btn(flat icon="mdi-plus" @click="add" color="primary")
2+
q-btn(flat icon="mdi-plus" @click="add" size="md" color="primary" dense)
33
q-tooltip.text-body2(transition-show="scale" transition-hide="scale") {{ tooltip }}
44
</template>
55

66
<script lang="ts" setup>
77
import type { PropType } from 'vue'
88
const props = defineProps({
9-
tooltip: {
10-
type: String,
11-
default: () => 'Ajouter',
12-
},
9+
tooltip: {
10+
type: String,
11+
default: () => 'Ajouter',
12+
},
1313
})
1414
1515
const emit = defineEmits(['add'])
1616
function add() {
17-
emit('add')
17+
emit('add')
1818
}
1919
</script>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<template lang="pug">
2-
q-btn(icon="mdi-eye" color="primary" @click="read" size="sm" flat)
2+
q-btn(icon="mdi-eye" color="primary" @click="read" dense size="sm" flat)
33
q-tooltip.text-body2(transition-show="scale" transition-hide="scale") {{ tooltip }}
4-
</template>
5-
4+
</template>
5+
66
<script lang="ts" setup>
77
const props = defineProps({
8-
tooltip: {
9-
type: String,
10-
default: () => 'Afficher',
11-
},
8+
tooltip: {
9+
type: String,
10+
default: () => 'Afficher',
11+
},
1212
})
1313
1414
const emit = defineEmits(['read'])
1515
function read() {
16-
emit('read')
16+
emit('read')
1717
}
18-
</script>
18+
</script>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template lang="pug">
2-
q-btn(flat icon="mdi-refresh" @click="refresh" color="info")
2+
q-btn(flat icon="mdi-refresh" @click="refresh" color="info" size="md" dense)
33
q-tooltip.text-body2(transition-show="scale" transition-hide="scale") Rafraichir
44
</template>
55

66
<script lang="ts" setup>
77
import type { PropType } from 'vue'
88
const emit = defineEmits(['refresh'])
99
function refresh() {
10-
emit('refresh')
10+
emit('refresh')
1111
}
1212
</script>
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<template lang="pug">
2-
q-btn(flat icon="mdi-delete" @click="remove" size="sm" color="negative")
2+
q-btn(flat icon="mdi-delete" @click="remove" size="sm" dense color="negative")
33
q-tooltip.text-body2(transition-show="scale" transition-hide="scale") {{ tooltip }}
44
</template>
55

66
<script lang="ts" setup>
77
import type { PropType } from 'vue'
88
const props = defineProps({
9-
tooltip: {
10-
type: String,
11-
default: () => 'Supprimer',
12-
},
9+
tooltip: {
10+
type: String,
11+
default: () => 'Supprimer',
12+
},
1313
})
1414
1515
const emit = defineEmits(['remove'])
1616
function remove() {
17-
emit('remove')
17+
emit('remove')
1818
}
1919
</script>

apps/web/src/components/2pan/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ q-splitter(
4343
slot(name="top-right-btn-grp")
4444
slot(name="top-right-btn-grp-content-before")
4545
sesame-2pan-btns-add(@add="add" v-if="crud.create")
46-
q-btn.desktop-only(v-if="!hidePanModeSwitch" flat :icon="isSimple ? 'mdi-table-border' : 'mdi-table-merge-cells'" color="info" @click="simple = !simple")
46+
q-btn.desktop-only(v-if="!hidePanModeSwitch" flat :icon="isSimple ? 'mdi-table-border' : 'mdi-table-merge-cells'" color="info" @click="simple = !simple" size="md" dense)
4747
q-tooltip.text-body2(transition-show="scale" transition-hide="scale") Mode simple/double panneaux
48-
q-btn(flat icon="mdi-table-headers-eye" color="info")
48+
q-btn(flat icon="mdi-table-headers-eye" color="info" dense size="md")
4949
q-tooltip.text-body2(transition-show="scale" transition-hide="scale") Afficher/cacher des colonnes
5050
q-menu(max-width="350px" max-height="350px").q-pa-md
5151
.row

apps/web/src/components/table/top-right.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<template lang="pug">
22
q-btn-group(rounded flat)
3-
q-btn(flat icon="mdi-table-headers-eye" color="primary")
3+
q-btn(flat icon="mdi-table-headers-eye" size="md" rounded color="primary" dense)
44
q-tooltip.text-body2(transition-show="scale" transition-hide="scale") Afficher/cacher des colonnes
55
q-menu(max-width="350px" max-height="350px").q-pa-md
66
.row
77
.col-6(v-for="column in columns" :key="column.value")
88
q-toggle(:model-value="modelValue" @update:model-value="update($event)" :label="column.label" :val="column.name")
9-
q-btn(flat icon="mdi-refresh" @click="refresh" color="primary")
9+
q-btn(flat icon="mdi-refresh" @click="refresh" rounded size="md" color="primary" dense)
1010
q-tooltip.text-body2(transition-show="scale" transition-hide="scale") Rafraichir
11-
q-btn(icon="mdi-plus" color="primary" @click="$router.push('/identity')") Créer
11+
q-btn(icon="mdi-plus" color="primary" size="md" rounded @click="$router.push('/identity')" dense) Créer
1212
</template>
1313

1414
<script lang="ts" setup>

0 commit comments

Comments
 (0)