-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(VList/VListGroup): add missing rtl margins and paddings (v2.0) #7861
Conversation
Please add the playground code for testing |
Hi, @jacekkarczmarczyk <template>
<div>
<v-card
max-width="500"
class="mx-auto"
>
<v-toolbar
color="deep-purple accent-4"
dark
>
<v-app-bar-nav-icon></v-app-bar-nav-icon>
<v-toolbar-title>New Chat</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn icon>
<v-icon>search</v-icon>
</v-btn>
</v-toolbar>
<v-list subheader>
<v-subheader>Recent chat</v-subheader>
<v-list-item
v-for="item in items"
:key="item.title"
@click=""
>
<v-list-item-avatar>
<v-img :src="item.avatar"></v-img>
</v-list-item-avatar>
<v-list-item-content>
<v-list-item-title v-text="item.title"></v-list-item-title>
</v-list-item-content>
<v-list-item-icon>
<v-icon :color="item.active ? 'deep-purple accent-4' : 'grey'">chat_bubble</v-icon>
</v-list-item-icon>
</v-list-item>
</v-list>
<v-divider></v-divider>
<v-list subheader>
<v-subheader>Previous chats</v-subheader>
<v-list-item
v-for="item in items2"
:key="item.title"
@click=""
>
<v-list-item-avatar>
<v-img :src="item.avatar"></v-img>
</v-list-item-avatar>
<v-list-item-content>
<v-list-item-title v-text="item.title"></v-list-item-title>
</v-list-item-content>
<v-list-item-avatar>
<v-img :src="item.avatar"></v-img>
</v-list-item-avatar>
</v-list-item>
</v-list>
</v-card>
<br><br>
<v-card
class="mx-auto"
width="300"
>
<v-list>
<v-list-item>
<v-list-item-icon>
<v-icon>home</v-icon>
</v-list-item-icon>
<v-list-item-title>Home</v-list-item-title>
</v-list-item>
<v-list-group
prepend-icon="account_circle"
value="true"
>
<template v-slot:activator>
<v-list-item>
<v-list-item-title>Users</v-list-item-title>
</v-list-item>
</template>
<v-list-group
no-action
sub-group
value="true"
>
<template v-slot:activator>
<v-list-item>
<v-list-item-content>
<v-list-item-title>Admin</v-list-item-title>
</v-list-item-content>
</v-list-item>
</template>
<v-list-item
v-for="(admin, i) in admins"
:key="i"
link
>
<v-list-item-title v-text="admin[0]"></v-list-item-title>
<v-list-item-icon>
<v-icon v-text="admin[1]"></v-icon>
</v-list-item-icon>
</v-list-item>
</v-list-group>
<v-list-group
sub-group
no-action
>
<template v-slot:activator>
<v-list-item>
<v-list-item-content>
<v-list-item-title>Actions</v-list-item-title>
</v-list-item-content>
</v-list-item>
</template>
<v-list-item
v-for="(crud, i) in cruds"
:key="i"
@click=""
>
<v-list-item-title v-text="crud[0]"></v-list-item-title>
<v-list-item-action>
<v-icon v-text="crud[1]"></v-icon>
</v-list-item-action>
</v-list-item>
</v-list-group>
</v-list-group>
</v-list>
</v-card>
<br>
<v-card
class="mx-auto"
color="#26c6da"
dark
max-width="400"
>
<v-card-title>
<v-icon
large
right
>
mdi-twitter
</v-icon>
<span class="title font-weight-light">Twitter</span>
</v-card-title>
<v-card-text class="headline font-weight-bold">
"Turns out semicolon-less style is easier and safer in TS because most gotcha edge cases are type invalid as well."
</v-card-text>
<v-card-actions>
<v-list-item class="grow">
<v-list-item-avatar color="grey darken-3">
<v-img
class="elevation-6"
src="https://avataaars.io/?avatarStyle=Transparent&topType=ShortHairShortCurly&accessoriesType=Prescription02&hairColor=Black&facialHairType=Blank&clotheType=Hoodie&clotheColor=White&eyeType=Default&eyebrowType=DefaultNatural&mouthType=Default&skinColor=Light"
></v-img>
</v-list-item-avatar>
<v-list-item-content>
<v-list-item-title>Evan You</v-list-item-title>
</v-list-item-content>
<v-layout
align-center
justify-end
>
<v-icon class="mr-1">mdi-heart</v-icon>
<span class="subheading mr-2">256</span>
<span class="mr-1">·</span>
<v-icon class="mr-1">mdi-share-variant</v-icon>
<span class="subheading">45</span>
</v-layout>
</v-list-item>
</v-card-actions>
</v-card>
</div>
</template>
<script>
export default
{
data: () => (
{
items: [
{ active: true, title: 'Jason Oner', avatar: 'https://cdn.vuetifyjs.com/images/lists/1.jpg' },
{ active: true, title: 'Ranee Carlson', avatar: 'https://cdn.vuetifyjs.com/images/lists/2.jpg' },
{ title: 'Cindy Baker', avatar: 'https://cdn.vuetifyjs.com/images/lists/3.jpg' },
{ title: 'Ali Connors', avatar: 'https://cdn.vuetifyjs.com/images/lists/4.jpg' },
],
items2: [
{ title: 'Travis Howard', avatar: 'https://cdn.vuetifyjs.com/images/lists/5.jpg' },
],
admins: [
['Management', 'people_outline'],
['Settings', 'settings'],
],
cruds: [
['Create', 'add'],
['Read', 'insert_drive_file'],
['Update', 'update'],
['Delete', 'delete'],
],
}),
};
</script> |
I was playing with RTL VTabs, I found issue with slide touch (
@jacekkarczmarczyk @johnleider should i open a new PR or add a commit here |
New PR. Ty |
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## master #7861 +/- ##
==========================================
- Coverage 85.8% 85.65% -0.15%
==========================================
Files 334 333 -1
Lines 9095 9091 -4
Branches 2418 2414 -4
==========================================
- Hits 7804 7787 -17
- Misses 1203 1211 +8
- Partials 88 93 +5
Continue to review full report at Codecov.
|
was this change released to public already? |
@TheInvoker yes check v2.0.4 |
fixes #8125
Hi,
I was testing vuetify v2 and I find paddings and margins not exists for rtl, So i decided to open this PR.
Types of changes
Checklist:
master
for bug fixes and documentation updates,dev
for new features and breaking changes).I'm happy to follow up and send more PRs if I find something.
Thank you :)