Skip to content

Commit 9a23ea9

Browse files
committed
allow different sizes for mobile for iframes. Reduce padding on smaller devices for iframe and allow them to be added through tina
1 parent 4493fb7 commit 9a23ea9

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

content/english/technical-tools/implementation-tool.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ All potential outcomes of the first questionnaire are shown in the [figure](/tec
2929

3030
{{< container_close >}}
3131

32-
{{< iframe src="https://ai-documentation.s3.eu-central-1.amazonaws.com/index.html?lang=en" title="" id="tool" icon="" height="60vh" >}}
32+
{{< iframe src="https://ai-documentation.s3.eu-central-1.amazonaws.com/index.html?lang=en" title="" id="tool" icon="" height="60vh" height_mobile="100vh" >}}
3333

3434
{{< container_open icon="fas fa-layer-group" title="Outcomes questionnaires" id="outcome" >}}
3535

3636
The outcomes of the first questionnaire are displayed in the below figure. The following categories are distinguished:
3737

3838
- Algorithms: fall outside the scope of the AI Act, no additional control measures are needed.
39-
- Impactful algorithms: fall outside the scope of the AI Act, additional control measures are needed.
39+
- Impactful algorithms: fall outside the scope of the AI Act, additional control measures are needed.
4040
- AI systems: are in scope of the AI Act, only additional control measures are needed in case of high-risk AI systems.
4141
- High risk AI systems: are in scope of the AI Act, additional control measures for high-risk AI systems are needed through harmonized standards.
4242
- Prohibited AI systems: are in scope of the AI Act, usage of this type of AI systems is prohibited in the European Union. More information about this category is provided by the <a href="https://www.digitaleoverheid.nl/achtergrondartikelen/welke-ai-praktijken-zijn-volgend-jaar-verboden/" target="_blank">Dutch government</a>.
@@ -51,7 +51,7 @@ The questions in the AI Act Implementation Tool are developed in collaboration w
5151

5252
{{< container_close >}}
5353

54-
{{< container_open icon="far fa-file" title="Guidelines for AI Act implementation" id="documentation-definition" >}}
54+
{{< container_open icon="far fa-file" title="Guidelines for AI Act implementation" id="documentation-definition" >}}
5555

5656
The reasoning and motivations behind the selected questions in the AI Act Implementation Tool are outlined in the below documents.
5757

@@ -61,7 +61,7 @@ The reasoning and motivations behind the selected questions in the AI Act Implem
6161

6262
{{< container_open icon="fas fa-chalkboard-teacher" title="Explainers" id="explainers" >}}
6363

64-
Through examples the slides decks explain the intricacies of the AI system definition.
64+
Through examples the slides decks explain the intricacies of the AI system definition.
6565

6666
### 10 examples of (non) AI systems
6767

@@ -81,4 +81,4 @@ Through examples the slides decks explain the intricacies of the AI system defin
8181

8282
{{< embed_pdf url="/pdf-files/technical-tools/AIA-Implementation-Tool/20250205_Flowchart_AIAIT_EN.pdf" width_mobile_pdf="12" width_desktop_pdf="12" >}}
8383

84-
{{< container_close >}}
84+
{{< container_close >}}

layouts/shortcodes/iframe.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="container-fluid mt-5 p-0">
44
<div class="rounded-lg" id='{{.Get "id" }}'>
55
<div class="row">
6-
<div class="col-12">
6+
<div class="col-12 p-0 p-lg-3">
77
{{ if .Get "title" }}
88
{{ if .Get "icon" }}
99
<!-- Title and icon -->
@@ -20,7 +20,7 @@ <h3 class="pl-3">{{ .Get "title" }}
2020
{{ end }}
2121
{{ end}}
2222
<div class="i-frame__container" >
23-
<iframe class="iframe" src='{{.Get "src" }}'
23+
<iframe id='{{.Get "id" }}' class="iframe" src='{{.Get "src" }}'
2424
title='{{.Get "title"}}'>
2525
</iframe>
2626
</div>
@@ -34,11 +34,19 @@ <h3 class="pl-3">{{ .Get "title" }}
3434
align-items: center;
3535
}
3636

37-
.iframe {
37+
#{{.Get "id" }} {
3838
border: none;
3939
width: 100%;
4040
height: {{.Get "height" }};
4141
}
42+
43+
{{ if .Get "height_mobile"}}
44+
@media only screen and (max-width: 992px) {
45+
#{{.Get "id" }} {
46+
height: {{.Get "height_mobile" }};
47+
}
48+
}
49+
{{ end }}
4250
</style>
4351
</div>
4452
</div>

tina/collections/shared/templates/iframe.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const iframe: RichTextTemplate = {
1111
name: "id",
1212
label: "ID",
1313
type: "string",
14-
description: "Use top level template",
1514
required: true,
1615
},
1716
{
@@ -28,6 +27,12 @@ const iframe: RichTextTemplate = {
2827
description: "Height of the iframe (i.e. 500px)",
2928
required: true,
3029
},
30+
{
31+
name: "height_mobile",
32+
label: "Height mobile",
33+
type: "string",
34+
description: "Height of the iframe (i.e. 500px)",
35+
},
3136
{
3237
name: "title",
3338
label: "Title",

tina/tina-lock.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)