Skip to content

Commit

Permalink
Merge branch 'release-2024-fall' of github.com:ProcessMaker/screen-bu…
Browse files Browse the repository at this point in the history
…ilder into bugfix/FOUR-19277
  • Loading branch information
CarliPinell committed Oct 23, 2024
2 parents a492f41 + e96ce66 commit b43857d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
15 changes: 7 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@processmaker/screen-builder",
"version": "3.0.1",
"version": "3.0.2",
"scripts": {
"dev": "VITE_COVERAGE=true vite",
"build": "vite build",
Expand Down Expand Up @@ -57,7 +57,7 @@
"@fortawesome/fontawesome-free": "^5.6.1",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@panter/vue-i18next": "^0.15.2",
"@processmaker/vue-form-elements": "0.60.1",
"@processmaker/vue-form-elements": "0.61.0",
"@processmaker/vue-multiselect": "2.3.0",
"@storybook/addon-essentials": "^7.6.13",
"@storybook/addon-interactions": "^7.6.13",
Expand Down Expand Up @@ -116,7 +116,7 @@
},
"peerDependencies": {
"@panter/vue-i18next": "^0.15.0",
"@processmaker/vue-form-elements": "0.60.1",
"@processmaker/vue-form-elements": "0.61.0",
"i18next": "^15.0.8",
"vue": "^2.6.12",
"vuex": "^3.1.1"
Expand Down
10 changes: 9 additions & 1 deletion src/components/ScreenTemplateCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="template-details">
<span class="template-name d-block pt-1">{{ template.name }}</span>
<span class="template-description d-block">{{
template.description
truncateText(template.description, 100)
}}</span>
</div>
<b-collapse v-model="isApplyOptionsActive">
Expand Down Expand Up @@ -178,6 +178,10 @@ export default {
} else {
this.selected.splice(index, 1);
}
},
truncateText(text, limit) {
if (!text) return "";
return text.length > limit ? `${text.substring(0, limit)}...` : text;
}
}
};
Expand Down Expand Up @@ -213,10 +217,14 @@ export default {
.thumbnail-image {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 8px 8px 0px 0px;
}
.thumbnail-image-container {
width: 100%;
height: 107px;
border-radius: 8px;
padding: 0px !important;
background-size: contain;
Expand Down

0 comments on commit b43857d

Please sign in to comment.