Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ui/src/components/card/QCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default createComponent({
default: 'div'
},

dense: Boolean,
square: Boolean,
flat: Boolean,
bordered: Boolean
Expand All @@ -28,6 +29,7 @@ export default createComponent({
const classes = computed(() =>
'q-card'
+ (isDark.value === true ? ' q-card--dark q-dark' : '')
+ (props.dense === true ? ' q-card--dense' : '')
+ (props.bordered === true ? ' q-card--bordered' : '')
+ (props.square === true ? ' q-card--square no-border-radius' : '')
+ (props.flat === true ? ' q-card--flat no-shadow' : '')
Expand Down
4 changes: 4 additions & 0 deletions ui/src/components/card/QCard.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"extends": "bordered"
},

"dense": {
"extends": "dense"
},

"tag": {
"extends": "tag",
"default": "'div'",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/components/card/QCard.sass
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
&--vert
padding: 16px

.q-card--dense &--vert
padding: 2px 16px

Comment on lines +42 to +44

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can simplify it by doing this:

Suggested change
.q-card--dense &--vert
padding: 2px 16px
&--dense &--vert
padding: 2px 16px

&--horiz
> div,
> img
Expand Down