Skip to content

Commit fe6d8a4

Browse files
authored
fix: Issue 2136 - Fixed cropped display of vf-search examples having results. (#2232)
1 parent 123c42c commit fe6d8a4

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

components/vf-content/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 1.6.19
2+
3+
* `vf-button` version correction
4+
15
### 1.6.18
26

37
* Dependency update to be compatible with ESM packages[Tracking issue](https://github.com/visual-framework/vf-core/issues/2107)

components/vf-content/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.6.18",
2+
"version": "1.6.19",
33
"name": "@visual-framework/vf-content",
44
"description": "vf-content component",
55
"homepage": "https://stable.visual-framework.dev/",
@@ -19,7 +19,7 @@
1919
"@visual-framework/vf-badge": "^3.0.4",
2020
"@visual-framework/vf-blockquote": "^1.2.10",
2121
"@visual-framework/vf-box": "^2.4.0",
22-
"@visual-framework/vf-button": "^3.0.3",
22+
"@visual-framework/vf-button": "^3.0.2",
2323
"@visual-framework/vf-divider": "^2.0.1",
2424
"@visual-framework/vf-figure": "^2.0.2",
2525
"@visual-framework/vf-form": "^2.0.3",

tools/vf-component-library/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 1.2.16
2+
3+
* Fix: Cropped display of `vf-search` examples having results [Tracking issue](https://github.com/visual-framework/vf-core/issues/2136)
4+
15
### 1.2.15
26

37
* Dependency update to be compatible with ESM packages[Tracking issue](https://github.com/visual-framework/vf-core/issues/2107)

tools/vf-component-library/src/site/_includes/layouts/components.njk

+6
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,14 @@ templateEngineOverride: njk
231231
<div class="vf-u-padding--400"
232232
style="overflow: auto; background-image: linear-gradient(45deg, rgba(59, 111, 182, .1) 25%, transparent 25%), linear-gradient(135deg, rgba(59, 111, 182, .1) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(59, 111, 182, .1) 75%), linear-gradient(135deg, transparent 75%, rgba(59, 111, 182, .1) 75%);background-size: 20px 20px; background-position-x: 0px, 10px, 10px, 0px;background-position-y: 0px, 0px, -10px, 10px;"
233233
>
234+
{% if component.baseHandle == 'vf-search' and 'vf-search--' in variant.handle and variant.context and variant.context.results %}
235+
<div style="height:350px;">
236+
{% endif %}
234237
{# When you want a box with a slight shadow #}
235238
{% render '@'+variant.handle, variant.context %}
239+
{% if component.baseHandle == 'vf-search' and 'vf-search--' in variant.handle and variant.context and variant.context.results %}
240+
</div>
241+
{% endif %}
236242
</div>
237243
{% endif %}
238244
{% if variants[0].context['exampleMultiColumns'] != "false" and (variants[0].context['component-type'] == "block" or variants[0].context['component-type'] == "element") %}

0 commit comments

Comments
 (0)