Skip to content

Commit

Permalink
fix(callbox): video height (#1211)
Browse files Browse the repository at this point in the history
* fix(callbox): video height

* fix issue
  • Loading branch information
juliodialpad authored Sep 26, 2023
1 parent 342a793 commit ceaf1f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 2 additions & 8 deletions recipes/leftbar/callbox/callbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,10 @@ export default {
border-radius: var(--dt-size-radius-300);
&--video {
display: flex;
border-radius: var(--dt-size-radius-200) var(--dt-size-radius-200) 0 0;
overflow: clip;
height: calc(var(--dt-size-760) + var(--dt-size-650));
margin-bottom: var(--dt-size-300-negative);
:deep(img) {
object-fit: cover;
width: 100%;
height: 100%;
}
margin-bottom: var(--dt-space-300-negative);
}
&--main-content {
Expand Down
9 changes: 9 additions & 0 deletions recipes/leftbar/callbox/callbox_variants.story.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<img
src="/common/assets/chatting-person-example.png"
alt="person avatar"
class="callbox-image"
>
</template>
<template #subtitle>
Expand Down Expand Up @@ -413,3 +414,11 @@ export default {
components: { DtItemLayout, DtIcon, DtButton, DtRecipeCallbox },
};
</script>

<style lang="less" scoped>
.callbox-image {
height: 140px;
object-fit: cover;
width: 100%;
}
</style>

0 comments on commit ceaf1f4

Please sign in to comment.