mirror of
https://github.com/nasa/openmct.git
synced 2025-06-28 03:42:21 +00:00
Compare commits
11 Commits
event-visu
...
recent-obj
Author | SHA1 | Date | |
---|---|---|---|
9561ac446a | |||
890e0115b3 | |||
bc46ab7393 | |||
c8fbdafc1a | |||
7a82e8c0a6 | |||
4640ab8331 | |||
16253a921f | |||
1ab48b6f50 | |||
48843ba3b0 | |||
de46b26029 | |||
45996f730b |
@ -33,7 +33,7 @@ $tabletItemH: floor(math.div($gridItemMobile, 3));
|
|||||||
$shellTimeConductorMobileH: 90px;
|
$shellTimeConductorMobileH: 90px;
|
||||||
|
|
||||||
/************************** MOBILE TREE MENU DIMENSIONS */
|
/************************** MOBILE TREE MENU DIMENSIONS */
|
||||||
$mobileTreeItemH: 35px;
|
$mobileTreeItemH: 30px;
|
||||||
$mobileTreeItemIndent: 15px;
|
$mobileTreeItemIndent: 15px;
|
||||||
$mobileTreeRightArrowW: 30px;
|
$mobileTreeRightArrowW: 30px;
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
></button>
|
></button>
|
||||||
</template>
|
</template>
|
||||||
<multipane type="vertical">
|
<multipane type="vertical">
|
||||||
<pane>
|
<pane class="l-pane__browse-tree">
|
||||||
<mct-tree
|
<mct-tree
|
||||||
ref="mctTree"
|
ref="mctTree"
|
||||||
:sync-tree-navigation="triggerSync"
|
:sync-tree-navigation="triggerSync"
|
||||||
@ -107,6 +107,7 @@
|
|||||||
</pane>
|
</pane>
|
||||||
<pane
|
<pane
|
||||||
handle="before"
|
handle="before"
|
||||||
|
class="l-pane__recently-viewed"
|
||||||
label="Recently Viewed"
|
label="Recently Viewed"
|
||||||
:persist-position="true"
|
:persist-position="true"
|
||||||
collapse-type="horizontal"
|
collapse-type="horizontal"
|
||||||
|
@ -26,11 +26,12 @@
|
|||||||
:class="isAlias"
|
:class="isAlias"
|
||||||
:aria-label="`${domainObject.name}`"
|
:aria-label="`${domainObject.name}`"
|
||||||
>
|
>
|
||||||
|
<div class="c-recentobjects-listitem__outerwrapper">
|
||||||
|
<div class="c-recentobjects-listitem__wrapper">
|
||||||
<div
|
<div
|
||||||
class="c-recentobjects-listitem__type-icon recent-object-icon"
|
class="c-recentobjects-listitem__type-icon recent-object-icon"
|
||||||
:class="resultTypeIcon"
|
:class="resultTypeIcon"
|
||||||
></div>
|
></div>
|
||||||
<div class="c-recentobjects-listitem__body">
|
|
||||||
<span
|
<span
|
||||||
ref="recentObjectName"
|
ref="recentObjectName"
|
||||||
class="c-recentobjects-listitem__title"
|
class="c-recentobjects-listitem__title"
|
||||||
@ -43,7 +44,8 @@
|
|||||||
>
|
>
|
||||||
{{ domainObject.name }}
|
{{ domainObject.name }}
|
||||||
</span>
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="c-recentobjects-listitem__object-path">
|
||||||
<ObjectPath
|
<ObjectPath
|
||||||
class="c-recentobjects-listitem__object-path"
|
class="c-recentobjects-listitem__object-path"
|
||||||
:read-only="false"
|
:read-only="false"
|
||||||
@ -51,6 +53,7 @@
|
|||||||
:object-path="objectPath"
|
:object-path="objectPath"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="c-recentobjects-listitem__target-button">
|
<div class="c-recentobjects-listitem__target-button">
|
||||||
<button
|
<button
|
||||||
class="c-icon-button icon-target"
|
class="c-icon-button icon-target"
|
||||||
|
@ -134,9 +134,8 @@
|
|||||||
background: linear-gradient(90deg, transparent 70%, rgba(black, 0.2) 99%, rgba(black, 0.3));
|
background: linear-gradient(90deg, transparent 70%, rgba(black, 0.2) 99%, rgba(black, 0.3));
|
||||||
|
|
||||||
.l-pane__header {
|
.l-pane__header {
|
||||||
// Hide all buttons except the collapse button
|
> :not(.l-pane__collapse-button) { // On default, show all the header icons.
|
||||||
> :not(.l-pane__collapse-button) {
|
display: block;
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,6 +147,11 @@
|
|||||||
[class*='collapse-button'] {
|
[class*='collapse-button'] {
|
||||||
right: -8px;
|
right: -8px;
|
||||||
}
|
}
|
||||||
|
.l-pane__header{ // If pane is collapsed, hide all the icons except the collapse button, which gets replaced into the hamburger menu.
|
||||||
|
> :not(.l-pane__collapse-button) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,14 @@
|
|||||||
|
|
||||||
&--vertical {
|
&--vertical {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
|
body.mobile & {
|
||||||
|
gap: $interiorMargin;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .l-pane .l-pane__contents {
|
||||||
|
padding-right: $interiorMarginSm; // Fend off scrollbar
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,6 +77,7 @@
|
|||||||
&[class*='--horizontal'] {
|
&[class*='--horizontal'] {
|
||||||
padding-left: $interiorMargin;
|
padding-left: $interiorMargin;
|
||||||
padding-right: $interiorMargin;
|
padding-right: $interiorMargin;
|
||||||
|
|
||||||
&.l-pane--collapsed {
|
&.l-pane--collapsed {
|
||||||
padding-left: 0 !important;
|
padding-left: 0 !important;
|
||||||
padding-right: 0 !important;
|
padding-right: 0 !important;
|
||||||
@ -79,6 +88,9 @@
|
|||||||
padding-top: $interiorMargin;
|
padding-top: $interiorMargin;
|
||||||
padding-bottom: $interiorMargin;
|
padding-bottom: $interiorMargin;
|
||||||
min-height: 30px; // For Recents holder
|
min-height: 30px; // For Recents holder
|
||||||
|
body.mobile & {
|
||||||
|
border-top: 2px solid $colorInteriorBorder; // Adds non-resizable splitter
|
||||||
|
}
|
||||||
|
|
||||||
&.l-pane--collapsed {
|
&.l-pane--collapsed {
|
||||||
padding-top: 0 !important;
|
padding-top: 0 !important;
|
||||||
@ -147,7 +159,6 @@
|
|||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
margin-bottom: $interiorMarginSm; // margin-bottom is needed for Tree and Inspector
|
margin-bottom: $interiorMarginSm; // margin-bottom is needed for Tree and Inspector
|
||||||
margin-right: $interiorMarginSm; // margin-right and margin-left are needed for Recent Objects
|
margin-right: $interiorMarginSm; // margin-right and margin-left are needed for Recent Objects
|
||||||
margin-left: $interiorMarginSm;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@ -195,14 +206,24 @@
|
|||||||
&[class*='--collapsed'] { // For Recent Objects Button
|
&[class*='--collapsed'] { // For Recent Objects Button
|
||||||
&.collapse-horizontal {
|
&.collapse-horizontal {
|
||||||
[class*='expand-button'] {
|
[class*='expand-button'] {
|
||||||
display: block;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-top-right-radius: $controlCr;
|
border-top-right-radius: $controlCr;
|
||||||
border-top-left-radius: $controlCr;
|
border-top-left-radius: $controlCr;
|
||||||
|
border-bottom-right-radius: $controlCr;
|
||||||
|
border-bottom-left-radius: $controlCr;
|
||||||
|
padding: $interiorMarginSm $interiorMargin;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
font-size: 0.7em;
|
||||||
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[class*='expand-button'] {
|
[class*='expand-button'] {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -328,6 +349,8 @@
|
|||||||
$m: $interiorMarginLg;
|
$m: $interiorMarginLg;
|
||||||
margin-top: $m;
|
margin-top: $m;
|
||||||
padding-top: $m;
|
padding-top: $m;
|
||||||
|
padding-bottom: 0;
|
||||||
|
|
||||||
> .l-pane__handle {
|
> .l-pane__handle {
|
||||||
top: 0;
|
top: 0;
|
||||||
transform: translateY(floor(math.div($splitterHandleD, -1)));
|
transform: translateY(floor(math.div($splitterHandleD, -1)));
|
||||||
@ -359,5 +382,28 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // Ends .body.desktop
|
}
|
||||||
} // Ends .l-pane
|
|
||||||
|
// Ends .body.desktop
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ends .l-pane
|
||||||
|
|
||||||
|
body.mobile {
|
||||||
|
.l-pane__header {
|
||||||
|
> * {
|
||||||
|
@include ellipsize();
|
||||||
|
@include userSelectNone();
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.l-pane__label {
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.l-pane__recently-viewed {
|
||||||
|
height: 50% !important;
|
||||||
|
max-height: 200px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -43,12 +43,23 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__outerwrapper{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__wrapper{
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
&__object-path {
|
&__object-path {
|
||||||
padding: 0 $interiorMarginSm;
|
padding: 0 $interiorMarginLg;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__target-button {
|
&__target-button {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__type-icon,
|
&__type-icon,
|
||||||
@ -59,6 +70,11 @@
|
|||||||
&__type-icon {
|
&__type-icon {
|
||||||
color: $colorItemTreeIcon;
|
color: $colorItemTreeIcon;
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
|
height: 100%; // When pane is small, this avoids the alias icons from wrapping down
|
||||||
|
min-width: $treeTypeIconW;
|
||||||
|
body.mobile &{
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
// TEMP: uses object-label component, hide label part
|
// TEMP: uses object-label component, hide label part
|
||||||
.c-object-label__name {
|
.c-object-label__name {
|
||||||
@ -102,7 +118,8 @@
|
|||||||
border-radius: $basicCr;
|
border-radius: $basicCr;
|
||||||
color: $colorItemTreeFg;
|
color: $colorItemTreeFg;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: $interiorMarginSm;
|
padding: 2px $interiorMarginSm;
|
||||||
|
margin-left: $interiorMarginSm;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $colorItemTreeHoverBg;
|
background-color: $colorItemTreeHoverBg;
|
||||||
@ -117,3 +134,22 @@
|
|||||||
.c-recentobjects-listitem:hover .c-recentobjects-listitem__target-button {
|
.c-recentobjects-listitem:hover .c-recentobjects-listitem__target-button {
|
||||||
opacity: 100;
|
opacity: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.mobile {
|
||||||
|
.c-recentobjects-listitem__target-button{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.c-recentobjects-listitem__wrapper{
|
||||||
|
height: $mobileTreeItemH;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: $interiorMarginSm;
|
||||||
|
background: rgba(172, 172, 172, 0.1);
|
||||||
|
border-radius: $interiorMarginSm;
|
||||||
|
}
|
||||||
|
.c-recentobjects-listitem{
|
||||||
|
border-top: none;
|
||||||
|
}
|
||||||
|
.c-recentobjects-listitem__type-icon{
|
||||||
|
margin-left: $interiorMargin;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user