You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/02/27 10:18:19 UTC
[royale-asjs] branch develop updated: jewel-card: fix internal size
issues
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new df2c472 jewel-card: fix internal size issues
df2c472 is described below
commit df2c472cf0c40a2558a4dc4f93e69567e71d1c18
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Thu Feb 27 11:18:06 2020 +0100
jewel-card: fix internal size issues
---
frameworks/projects/Jewel/src/main/resources/defaults.css | 3 +++
frameworks/projects/Jewel/src/main/sass/components/_card.sass | 6 +++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/Jewel/src/main/resources/defaults.css b/frameworks/projects/Jewel/src/main/resources/defaults.css
index 63583ba..59d19f2 100644
--- a/frameworks/projects/Jewel/src/main/resources/defaults.css
+++ b/frameworks/projects/Jewel/src/main/resources/defaults.css
@@ -293,6 +293,8 @@ j|ToggleButtonBar {
}
.jewel.card {
+ display: flex;
+ flex-direction: column;
min-width: 240px;
min-height: 52px;
overflow: hidden;
@@ -309,6 +311,7 @@ j|ToggleButtonBar {
color: inherit;
text-decoration: none;
overflow: hidden;
+ flex: 1 1 auto;
}
.jewel.card .cardActions {
width: 100%;
diff --git a/frameworks/projects/Jewel/src/main/sass/components/_card.sass b/frameworks/projects/Jewel/src/main/sass/components/_card.sass
index fff2f9d..01b26ae 100644
--- a/frameworks/projects/Jewel/src/main/sass/components/_card.sass
+++ b/frameworks/projects/Jewel/src/main/sass/components/_card.sass
@@ -25,7 +25,8 @@ $card-height: 52px !default
$card-primary-content-minheight: 152px !default
.jewel.card
- //flex-direction: column
+ display: flex
+ flex-direction: column
min-width: $card-width
min-height: $card-height
@@ -37,6 +38,7 @@ $card-primary-content-minheight: 152px !default
.cardHeader
width: 100%
+ flex
.cardPrimaryContent
width: 100%
@@ -48,6 +50,8 @@ $card-primary-content-minheight: 152px !default
text-decoration: none
overflow: hidden
+ flex: 1 1 auto
+
.cardActions
width: 100%
position: relative