Skip to content

Commit

Permalink
WIP: adjust url text length
Browse files Browse the repository at this point in the history
  • Loading branch information
up209d committed Sep 15, 2022
1 parent d6b9d72 commit 8ba0141
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 211,693 deletions.
13 changes: 8 additions & 5 deletions src/devtoolApp/components/DownloadList/LogSection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,14 @@ export const LogSection = (props) => {
<LogSectionFilterInput value={filter} onChange={handleFilterChange} placeholder={`Enter filter keywords...`} />
</LogSectionFilter>
<LogSectionList>
{result[viewTab].map((i) => (
<LogSectionListItem key={i.url} bgColor={TABS_COLORS[viewTab]}>
{i.url}
</LogSectionListItem>
))}
{result[viewTab].map((i) => {
const urlText = i.url?.length > 1024 ? `${i.url}...` : i.url;
return (
<LogSectionListItem key={i.url} bgColor={TABS_COLORS[viewTab]}>
{urlText}
</LogSectionListItem>
);
})}
</LogSectionList>
</LogSectionWrapper>
);
Expand Down
2 changes: 1 addition & 1 deletion src/devtoolApp/components/DownloadList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const DownloadList = () => {
return (
<React.Fragment key={item.url}>
<DownloadListItemWrapper highlighted={item.url === tab.url} done={!!foundLog} logExpanded={logExpanded}>
<DownloadListItemUrl active={isSaving === item.url}>{String(item.url).slice(0, 128)}</DownloadListItemUrl>
<DownloadListItemUrl active={isSaving === item.url}>{item.url}</DownloadListItemUrl>
<DownloadListButtonGroup>
{!isSaving && foundLog && (
<Button color={`secondary`} onClick={handleLog(foundLog)}>
Expand Down
Binary file removed unpacked2x/Dosis-Book.500ffc4b.eot
Binary file not shown.
Binary file removed unpacked2x/Dosis-Book.9d2a2e92.woff
Binary file not shown.
Binary file removed unpacked2x/Dosis-Book.b4274606.ttf
Binary file not shown.
2,088 changes: 0 additions & 2,088 deletions unpacked2x/Dosis-Book.beedc405.svg

This file was deleted.

4 changes: 0 additions & 4 deletions unpacked2x/devtool.app.5545e409.js

This file was deleted.

1 change: 0 additions & 1 deletion unpacked2x/devtool.app.5545e409.js.map

This file was deleted.

57 changes: 0 additions & 57 deletions unpacked2x/devtool.app.64fb0f27.css

This file was deleted.

1 change: 0 additions & 1 deletion unpacked2x/devtool.app.64fb0f27.css.map

This file was deleted.

7 changes: 0 additions & 7 deletions unpacked2x/devtool.app.c46477f1.js

This file was deleted.

1 change: 0 additions & 1 deletion unpacked2x/devtool.app.c46477f1.js.map

This file was deleted.

Loading

0 comments on commit 8ba0141

Please sign in to comment.