Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions client-v3/src/components/show/live/ScriptLineViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
</template>
</BRow>
<BRow
class="line-row"
:class="{
'stage-direction': line.line_type === LINE_TYPES.STAGE_DIRECTION,
'heading-padding': line.line_type === LINE_TYPES.DIALOGUE && needsHeadingsAll,
Expand Down Expand Up @@ -144,7 +145,7 @@
<BButton
v-if="cueAddMode"
variant="success"
class="cue-button ms-1"
class="cue-button add-cue-btn ms-1"
:disabled="isLineCut"
@click.stop="addNewCue"
>
Expand All @@ -170,7 +171,7 @@
<BButton
v-if="cueAddMode"
variant="success"
class="cue-button ms-1"
class="cue-button add-cue-btn ms-1"
:disabled="isLineCut"
@click.stop="addNewCue"
>
Expand Down Expand Up @@ -439,6 +440,12 @@ onUnmounted(() => {
padding: 0.2rem;
}

.line-row:has(.add-cue-btn:hover) {
background-color: rgba(255, 255, 255, 0.06);
border-radius: 4px;
transition: background-color 0.15s ease;
}

.stage-direction {
margin-top: 1rem;
margin-bottom: 1rem;
Expand Down
20 changes: 16 additions & 4 deletions client-v3/src/components/show/live/ScriptLineViewerCompact.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</BCol>
<BCol v-if="cueAddMode" cols="1" class="cue-add-column" />
</BRow>
<BRow>
<BRow class="line-row">
<template v-if="line.line_type === LINE_TYPES.DIALOGUE">
<template v-for="(part, index) in line.line_parts" :key="`part_${lineIndex}_${index}`">
<BCol
Expand Down Expand Up @@ -88,7 +88,9 @@
cols="1"
class="cue-add-column d-flex align-items-center justify-content-center"
>
<BButton variant="success" size="sm" @click.stop="addNewCue"><IMdiPlusBox /></BButton>
<BButton variant="success" size="sm" class="add-cue-btn" @click.stop="addNewCue"
><IMdiPlusBox
/></BButton>
</BCol>
</template>
<template v-else-if="line.line_type === LINE_TYPES.STAGE_DIRECTION">
Expand All @@ -113,7 +115,9 @@
cols="1"
class="cue-add-column d-flex align-items-center justify-content-center"
>
<BButton variant="success" size="sm" @click.stop="addNewCue"><IMdiPlusBox /></BButton>
<BButton variant="success" size="sm" class="add-cue-btn" @click.stop="addNewCue"
><IMdiPlusBox
/></BButton>
</BCol>
</template>
<template v-else-if="line.line_type === LINE_TYPES.CUE_LINE">
Expand All @@ -124,7 +128,9 @@
cols="1"
class="cue-add-column d-flex align-items-center justify-content-center"
>
<BButton variant="success" size="sm" @click.stop="addNewCue"><IMdiPlusBox /></BButton>
<BButton variant="success" size="sm" class="add-cue-btn" @click.stop="addNewCue"
><IMdiPlusBox
/></BButton>
</BCol>
</template>
</BRow>
Expand Down Expand Up @@ -337,4 +343,10 @@ onUnmounted(() => {
.cue-add-column {
border-left: 0.1rem solid #3498db;
}

.line-row:has(.add-cue-btn:hover) {
background-color: rgba(255, 255, 255, 0.06);
border-radius: 4px;
transition: background-color 0.15s ease;
}
</style>
11 changes: 9 additions & 2 deletions client/src/vue_components/show/live/ScriptLineViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
</template>
</b-row>
<b-row
class="line-row"
:class="{
'stage-direction': line.line_type === LINE_TYPES.STAGE_DIRECTION,
'heading-padding': line.line_type === LINE_TYPES.DIALOGUE && needsHeadingsAll,
Expand Down Expand Up @@ -150,7 +151,7 @@
</b-button>
<b-button
v-if="cueAddMode"
class="cue-button"
class="cue-button add-cue-btn"
:disabled="isWholeLineCut(line)"
@click.stop="addNewCue"
>
Expand All @@ -175,7 +176,7 @@
</b-button>
<b-button
v-if="cueAddMode"
class="cue-button"
class="cue-button add-cue-btn"
:disabled="isWholeLineCut(line)"
@click.stop="addNewCue"
>
Expand Down Expand Up @@ -393,6 +394,12 @@ export default defineComponent({
padding: 0.2rem;
}

.line-row:has(.add-cue-btn:hover) {
background-color: rgba(255, 255, 255, 0.06);
border-radius: 4px;
transition: background-color 0.15s ease;
}

.stage-direction {
margin-top: 1rem;
margin-bottom: 1rem;
Expand Down
14 changes: 10 additions & 4 deletions client/src/vue_components/show/live/ScriptLineViewerCompact.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<b-col v-if="cueAddMode" cols="1" class="cue-add-column" />
</b-row>
</template>
<b-row>
<b-row class="line-row">
<template v-if="line.line_type === LINE_TYPES.DIALOGUE">
<template v-for="(part, index) in line.line_parts">
<b-col
Expand Down Expand Up @@ -106,7 +106,7 @@
cols="1"
class="cue-add-column d-flex align-items-center justify-content-center"
>
<b-button variant="success" size="sm" @click.stop="addNewCue">
<b-button variant="success" size="sm" class="add-cue-btn" @click.stop="addNewCue">
<b-icon-plus-square-fill />
</b-button>
</b-col>
Expand Down Expand Up @@ -141,7 +141,7 @@
cols="1"
class="cue-add-column d-flex align-items-center justify-content-center"
>
<b-button variant="success" size="sm" @click.stop="addNewCue">
<b-button variant="success" size="sm" class="add-cue-btn" @click.stop="addNewCue">
<b-icon-plus-square-fill />
</b-button>
</b-col>
Expand All @@ -158,7 +158,7 @@
cols="1"
class="cue-add-column d-flex align-items-center justify-content-center"
>
<b-button variant="success" size="sm" @click.stop="addNewCue">
<b-button variant="success" size="sm" class="add-cue-btn" @click.stop="addNewCue">
<b-icon-plus-square-fill />
</b-button>
</b-col>
Expand Down Expand Up @@ -327,4 +327,10 @@ export default defineComponent({
.cue-add-column {
border-left: 0.1rem solid #3498db;
}

.line-row:has(.add-cue-btn:hover) {
background-color: rgba(255, 255, 255, 0.06);
border-radius: 4px;
transition: background-color 0.15s ease;
}
</style>
Loading