Skip to content

Commit

Permalink
Frontend: Allow player widgets to move outside the player
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinSRG committed Feb 9, 2024
1 parent b678474 commit 1a558a3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="tags-edit-helper-container">
<div class="resizable-widget-container">
<ResizableWidget
:title="$t('Extended description')"
v-model:display="displayStatus"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/player/TagsEditHelper.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="tags-edit-helper-container">
<div class="resizable-widget-container">
<ResizableWidget
:title="$t('Tags')"
v-model:display="displayStatus"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/player/TimeSlicesEditHelper.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="time-slices-edit-helper-container">
<div class="resizable-widget-container">
<ResizableWidget
:title="$t('Time slices')"
v-model:display="displayStatus"
Expand Down
12 changes: 12 additions & 0 deletions frontend/src/style/player/resizable-widget.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
/* Resizable widget */

.resizable-widget-container {
position: fixed;
z-index: 10;

left: 0.5rem;
right: 0.5rem;
top: 0.5rem;
bottom: 0.5rem;

pointer-events: none;
}

.resizable-widget {
position: absolute;
background-color: var(--player-editor-background);
Expand Down
12 changes: 0 additions & 12 deletions frontend/src/style/player/tags-edit.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
/* Tags editor helper */

.tags-edit-helper-container {
position: absolute;

right: 0.5rem;

top: calc(56px + 0.5rem);
bottom: 76px;

width: calc(100% - 1rem);
pointer-events: none;
}

.tags-editor-body {
padding: 1rem;
}
12 changes: 0 additions & 12 deletions frontend/src/style/player/time-slices-edit.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
/* Time slices editor helper */

.time-slices-edit-helper-container {
position: absolute;

right: 0.5rem;

top: calc(56px + 0.5rem);
bottom: 76px;

width: calc(100% - 1rem);
pointer-events: none;
}

.time-slices-edit-helper-btn {
display: inline-block;
width: 24px;
Expand Down

0 comments on commit 1a558a3

Please sign in to comment.