Skip to content

Commit 8f424c3

Browse files
th7nderWenInCode
authored andcommitted
[QuickOpen] show the end of the path (firefox-devtools#8137)
* fix: truncate on start via css * revert: change margin to previous value
1 parent d898e72 commit 8f424c3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/shared/ResultList.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@
117117
text-overflow: ellipsis;
118118
overflow: hidden;
119119
white-space: nowrap;
120+
direction: rtl; /* make ellipsis on the beginning of a string */
121+
text-align: left;
120122
}
121123

122124
.theme-dark .result-list.big li.selected .subtitle {

src/utils/quick-open.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
// @flow
66
import classnames from "classnames";
7-
import { endTruncateStr } from "./utils";
87
import {
98
isPretty,
109
getFilename,
@@ -64,12 +63,11 @@ export function formatSourcesForList(source: Source, tabs: TabList) {
6463
const relativeUrlWithQuery = `${source.relativeUrl}${getSourceQueryString(
6564
source
6665
) || ""}`;
67-
const subtitle = endTruncateStr(relativeUrlWithQuery, 100);
68-
const value = relativeUrlWithQuery;
66+
6967
return {
70-
value,
68+
value: relativeUrlWithQuery,
7169
title,
72-
subtitle,
70+
subtitle: relativeUrlWithQuery,
7371
icon: tabs.some(tab => tab.url == source.url)
7472
? "tab result-item-icon"
7573
: classnames(getSourceClassnames(source), "result-item-icon"),

0 commit comments

Comments
 (0)