diff --git a/.eslintrc b/.eslintrc index 1033b4c..9b5edb1 100755 --- a/.eslintrc +++ b/.eslintrc @@ -30,7 +30,7 @@ "prefer-promise-reject-errors": 0, "jsx-a11y/mouse-events-have-key-events": 0, "camelcase": 0, - "no-trailing-spaces": 0, + "no-trailing-spaces": 0 }, "globals": { "document": false, @@ -41,7 +41,7 @@ "FormData": false, "WebSocket": true, "Element": true, - "localStorage": true, + "localStorage": true }, "env": {}, "settings": { diff --git a/src/components/maps/RouteRowView.tsx b/src/components/maps/RouteRowView.tsx index 8c00093..a9c943f 100644 --- a/src/components/maps/RouteRowView.tsx +++ b/src/components/maps/RouteRowView.tsx @@ -37,8 +37,8 @@ export const RouteRowView = ({
{ is_starred - ? - : + ? + : }
} @@ -47,6 +47,10 @@ export const RouteRowView = ({ onClick={() => openRoute(_id)} >
+ { + (tab === 'all' || tab === 'starred') && is_starred && !is_admin && + + } {(title || _id)}
diff --git a/src/styles/dialogs.less b/src/styles/dialogs.less index 66203a3..a374b78 100644 --- a/src/styles/dialogs.less +++ b/src/styles/dialogs.less @@ -337,68 +337,21 @@ } -//.route-row-panel { -// position: absolute; -// top: 100%; -// height: 32px; -// width: 100%; -// left: 0; -// background: mix(@dialog_background, white, 80%); -// border-radius: 0 0 @panel_radius @panel_radius; -// z-index: 1; -// transform: scaleY(0); -// pointer-events: none; -// touch-action: none; -// transition: transform 250ms; -// transform-origin: 0 0; -// padding: 0 5px; -// box-sizing: border-box; -// // display: flex; -// align-items: center; -// fill: white; -// -// display: none; -// -// & > div { -// display: flex; -// align-items: center; -// -// svg { -// margin-right: 2px; -// } -// } -//} -// -//.route-row-edit { -// fill: rgba(255, 255, 255, 0.3); -// right: -48px; -// padding-left: 0px; -// stroke: none; -// position: absolute; -// top: 0; -// width: 58px; -// height: 100%; -// transition: all 500ms; -// display: flex; -// align-items: center; -// justify-content: center; -// cursor: pointer; -// -// &:hover { -// fill: @green_secondary; -// } -//} - .route-title { margin-bottom: 5px; font-weight: bold; text-overflow: ellipsis; overflow: hidden; - //white-space: nowrap; position: relative; max-height: 2.4em; word-break: break-word; + display: flex; + + svg { + fill: fade(white, 50%); + margin-right: 2px; + } } .route-description { diff --git a/tsconfig.json b/tsconfig.json index fe59e18..2e5ace5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -28,6 +28,6 @@ "include": [ "./src/**/*", "./backend/**/*", - "./custom.d.ts", + "./custom.d.ts" ] }