Skip to content

Commit

Permalink
Merge pull request #4268 from manuelmeister/feature/fix-layout-of-con…
Browse files Browse the repository at this point in the history
…tent-nodes

Fix error messages not visible in activity view
  • Loading branch information
usu committed Dec 22, 2023
2 parents a23bb85 + de8c0a0 commit 2203a85
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 9 deletions.
10 changes: 9 additions & 1 deletion frontend/src/components/activity/CardContentNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</v-toolbar>
</v-card-title>
<slot name="outer">
<v-card-text class="flex-grow-1">
<v-card-text class="flex-grow-1" :class="{ 'pointer-events-none': layoutMode }">
<slot />
</v-card-text>
</slot>
Expand Down Expand Up @@ -139,5 +139,13 @@ export default {
.v-input__control {
height: 100%;
}
.v-text-field__details {
flex-grow: 0;
}
.grow-v-slot .v-input__slot {
flex-grow: 1;
}
}
</style>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<card-content-node v-bind="$props">
<v-list three-line class="mx-n4">
<v-list three-line class="mx-n4" color="transparent">
<v-list-item-group>
<v-list-item
v-for="(option, key) in contentNode.data.options"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/activity/content/Notes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
auto-grow
:disabled="layoutMode || disabled"
:filled="layoutMode"
height="100%"
class="grow-v-slot"
/>
</card-content-node>
</template>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/activity/content/SafetyConcept.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
rows="2"
:disabled="layoutMode || disabled"
:filled="layoutMode"
height="100%"
class="grow-v-slot"
/>
</card-content-node>
</template>
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/components/activity/content/Storyboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
<component
:is="isDefaultVariant ? 'table' : 'div'"
class="w-full"
:class="{ 'flex-grow-1': !isDefaultVariant }"
:class="{
'flex-grow-1': !isDefaultVariant,
'pointer-events-none px-3 pb-3': layoutMode,
}"
>
<thead v-if="isDefaultVariant">
<tr>
<th>
<th v-if="!layoutMode">
<span class="d-sr-only">
{{ $tc('components.activity.content.storyboard.reorder') }}
</span>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/activity/content/Storycontext.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
auto-grow
:disabled="layoutMode || disabled"
:filled="layoutMode"
height="100%"
class="grow-v-slot"
/>
</card-content-node>
</template>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<tr class="e-storyboard-row e-storyboard-row--default">
<td class="e-storyboard-row__handle">
<td v-if="!layoutMode" class="e-storyboard-row__handle">
<v-btn
icon
small
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div role="row" class="e-storyboard-row e-storyboard-row--dense">
<div role="cell" class="e-storyboard-row__handle">
<div v-if="!layoutMode" role="cell" class="e-storyboard-row__handle">
<v-btn
icon
small
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/material/MaterialTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:disable-pagination="true"
mobile-breakpoint="0"
item-class="rowClass"
class="transparent"
:class="{
'ec-material-table--dense': !isDefaultVariant,
'ec-material-table--default': isDefaultVariant,
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/scss/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ body {
display: inline-grid;
}

.pointer-events-none {
pointer-events: none;
}

.opacity-60 {
opacity: 0.6;
}
Expand Down

0 comments on commit 2203a85

Please sign in to comment.