mirror of
https://github.com/nasa/openmct.git
synced 2024-12-27 08:32:28 +00:00
33c208d8fe
open #965 - CSS adjusted to handle min-width of 2px and better approach to ellipsizing text; - Angular ng-class added to hide icon and title if width less than a value; - Rounded corners on bars removed;
41 lines
1.6 KiB
HTML
41 lines
1.6 KiB
HTML
<!--
|
|
Open MCT Web, Copyright (c) 2009-2015, United States Government
|
|
as represented by the Administrator of the National Aeronautics and Space
|
|
Administration. All rights reserved.
|
|
|
|
Open MCT Web is licensed under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
http://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
License for the specific language governing permissions and limitations
|
|
under the License.
|
|
|
|
Open MCT Web includes source code licensed under additional open source
|
|
licenses. See the Open Source Licenses file (LICENSES.md) included with
|
|
this source code distribution or the Licensing information page available
|
|
at runtime from the About dialog for additional information.
|
|
-->
|
|
<div class="t-timeline-gantt l-timeline-gantt s-timeline-gantt"
|
|
ng-class="{ sm: gantt.width(timespan, parameters.scroll, parameters.toPixels) < 25 }"
|
|
title="{{model.name}}"
|
|
ng-controller="TimelineGanttController as gantt"
|
|
ng-style="timespan ? {
|
|
left: gantt.left(timespan, parameters.scroll, parameters.toPixels) + 'px',
|
|
width: gantt.width(timespan, parameters.scroll, parameters.toPixels) + 'px'
|
|
} : {}">
|
|
|
|
<div class="bar">
|
|
<span class="s-activity-type ui-symbol">
|
|
{{type.getGlyph()}}
|
|
</span>
|
|
<span class="s-title">
|
|
{{model.name}}
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|