When coding Vue project with vuetify, I found there are useless padding in <v-list>
tag, in detail, it is about <v-list-tile>
tag.
image: https://segmentfault.com/img/bVbtemC?w=890&h=1288
There are one parent list item and one child list item, and there are some padding space in left and right.
I have followed official methods to set class="pa-0"
, however, it does not work when I add this class to all the tags around.
And of course set CSS directly does not work too, the image above shows that the target tag is the one with class="v-list__tile"
, but CSS on this class still does not work.
<v-navigation-drawer width="200px" stateless value="true"
class="transparent">
<v-list subheader dense expand>
<v-list-group no-action>
<template v-slot:activator>
<v-list-tile class="pa-0">
<v-icon left>home</v-icon>
<v-list-tile-title>menu-name-m</v-list-tile-title>
</v-list-tile>
</template>
<v-list-tile class="pa-0" @click="onMenuCliked">
<v-list-tile-title>no child - menu-name</v-list-tile-title>
</v-list-tile>
</v-list-group>
</v-list>
</v-navigation-drawer>
This is my code partly, it is in vue-cli.
I know remove no-action
in <v-list-group>
tag works on child list item, but it is not the way I want, and this does not work on the parent one.
I hope I can control the green padding in the image above, or juest remove it.