Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Shorten URLs by reducing map state kept in the hash to the minimum
- Don't set RTL text plugin if already in progress
- Add branch name to screenshots if looking at branch pattern

## 0.17.0

Expand Down
2 changes: 1 addition & 1 deletion dist/bundle.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/CustomJsUi.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
mapObj = state?.[index];
});

const { customJs } = $configStore;
const { customJs = [] } = $configStore;

$: validActions = customJs.filter(js => js.mapIds.includes(mapId));

Expand Down
21 changes: 20 additions & 1 deletion src/components/Map.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,21 @@
$: setMapComponent(mapRenderer);

$: mapStateProps = getMapStateProps($$restProps);

$: console.log(map);
</script>

<div class="map-container">
<div class="screenshot-label-transparent">{map.name ?? map.id}</div>
<div class="screenshot-label-transparent">
{#if map?.branch}
<div class="screenshot-text">
{map.screenshotName ?? map.name ?? map.id}
<span class="screenshot-label-bold">&nbsp;{map.branch}</span>
</div>
{:else}
{map.name ?? map.id}
{/if}
</div>
{#key mapRenderer}
<div class="map" class:highlight-diff={highlightDifferences}>
<svelte:component
Expand Down Expand Up @@ -226,6 +237,14 @@
align-items: center;
}

.screenshot-text {
text-align: center;
}

.screenshot-label-bold {
font-weight: bold;
}

.screenshot-label-transparent {
display: none;
}
Expand Down
1 change: 1 addition & 0 deletions src/components/MapStyleInputWrapper.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
if (pattern?.styles?.length) {
const branchValues = pattern?.styles.map(s => {
return {
screenshotName: `${pattern.name ?? pattern.id}: ${s} on`,
name: `${pattern.name ?? pattern.id}: ${s} on...`,
branchId: pattern?.id,
id: s,
Expand Down