Skip to content

Commit

Permalink
Merge pull request #463 from maurofmferrao/swift-2.0.0-beta
Browse files Browse the repository at this point in the history
OSX-378: Widget timeline info fix
  • Loading branch information
maurofmferrao authored Jan 24, 2019
2 parents 34ebab5 + 7758fde commit c4c0c37
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 33 deletions.
18 changes: 16 additions & 2 deletions ui/src/css/designer.less
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,21 @@
padding: 0 4px;
}

#layout-editor #layout-timeline .designer-widget .widgetTitle .widgetName {
#layout-editor #layout-timeline .designer-widget .widgetName {
font-style: italic;
color: @timeline-widget-fg-color;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 50%;
float: left;
padding: 0 2px;
}

#layout-editor #layout-timeline .designer-widget .widgetTitle .widgetSubType {
#layout-editor #layout-timeline .designer-widget .widgetSubType {
color: @timeline-widget-fg-color2;
padding: 0 2px;
float: left;
}

#layout-editor #layout-timeline .designer-widget .widget-transition-container {
Expand Down Expand Up @@ -320,9 +328,15 @@
color: @timeline-ghost-fg-color;
font-weight: bold;
float: left;
display: flex;
height: 100%;
}

#layout-editor #layout-timeline .designer-widget-ghost .widgetName,
#layout-editor #layout-timeline .designer-widget-ghost .widgetSubType {
color: @timeline-ghost-fg-color;
}

#layout-editor #layout-timeline .designer-widget-sortable-highlight {
background: #ffe921;
float: left;
Expand Down
18 changes: 8 additions & 10 deletions ui/src/css/playlist-editor.less
Original file line number Diff line number Diff line change
Expand Up @@ -218,27 +218,25 @@
.playlist-widget .widgetLabel {
color: @playlist-editor-main-background-color;
width: 25px;
display: inline-block;
height: 100%;
text-align: center;
float: left;
}

.playlist-widget .widgetTitle {
display: inline-block;
}

.playlist-widget .widgetTitle .widgetName {
.playlist-widget .widgetName {
font-style: italic;
color: @playlist-editor-widget-fg-color;overflow: hidden;
color: @playlist-editor-widget-fg-color;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 150px;
max-width: 50%;
float: left;
}

.playlist-widget .widgetTitle .widgetSubType {
.playlist-widget .widgetSubType {
color: @playlist-editor-widget-fg-color2;
padding-left: 5px;
padding: 0 2px;
float: left;
}

.playlist-widget i.editProperty:hover {
Expand Down
16 changes: 8 additions & 8 deletions ui/src/templates/playlist-timeline-widget.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
class="playlist-widget selectable {{#eq isValid 0}}invalid-widget{{/eq}} {{#if selected}}selected{{/if}} {{#if isEditable}}editable{{/if}} {{#if isPermissionsModifiable}}permissionsModifiable{{/if}} {{#if isDeletable}}deletable{{/if}}">

<div class="widgetLabel timelineMediaItemColouringDefault timelineMediaItemColouring_{{ subType }} {{ widgetColouring }}">{{ duration }}</div>
<div class="widgetTitle" title="{{id}}">
<span class="widgetName">
{{widgetName}}
</span>
<span class="widgetSubType">
[{{ subType }}]
</span>
</div>

<span class="widgetSubType">
[{{ subType }}]
</span>

<span class="widgetName" title="{{widgetName}}">
{{widgetName}}
</span>

{{#if audio}}
<i class="fa fa-volume-up editProperty" data-property="Audio"></i>
Expand Down
7 changes: 4 additions & 3 deletions ui/src/templates/timeline-ghost-widget.hbs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<div id="{{ id }}" data-type="widget" class="designer-widget designer-widget-ghost" style="
width: {{ durationPercentage }}%;">
<span class="widgetName">
{{widgetName}}
</span>
<span class="widgetSubType">
[{{ subType }}]
</span>

<span class="widgetName">
{{widgetName}}
</span>
</div>

17 changes: 7 additions & 10 deletions ui/src/templates/timeline-widget.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ width: {{ durationPercentage }}%;">
{{ duration }}
</div>

<div class="widgetItem widgetInfo">
<div class="widgetTitle">
<span class="widgetName">
{{widgetName}}
</span>
<span class="widgetSubType">
[{{ subType }}]
</span>
</div>
</div>
<span class="widgetItem widgetSubType">
[{{ subType }}]
</span>

<span class="widgetItem widgetName" title="{{widgetName}}">
{{widgetName}}
</span>

<div class="widgetItem widgetProperties">
{{#if audio}}
Expand Down

0 comments on commit c4c0c37

Please sign in to comment.