Skip to content

Commit

Permalink
💄 Some slight UI cleanup for screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
trickypr committed Dec 7, 2023
1 parent af33bc7 commit 9edd1d9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
9 changes: 8 additions & 1 deletion src/content/history/component/Entry.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
.tree-item {
border: none;
margin: 0;
padding: 0;
padding: 0.25rem;
border-radius: 0.25rem;
background: none;
width: 100%;
Expand All @@ -48,4 +49,10 @@
overflow: hidden;
max-width: 90%;
}
.tree-item .icon {
display: flex;
align-items: center;
margin-right: 0.5rem;
}
</style>
8 changes: 7 additions & 1 deletion src/content/history/component/HistoryContainerNode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,17 @@
{/if}
</Entry>

<ul use:melt={$group({ id })}>
<ul use:melt={$group({ id })} class="tree-group">
{#if open}
{#each children as node}
<HistoryNode {treeId} {node} />
{/each}
{/if}
</ul>
</li>

<style>
.tree-group {
padding-inline-start: 2rem;
}
</style>
2 changes: 1 addition & 1 deletion src/content/history/component/HistoryItemNode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
</script>

<Entry mlt={$item({ id })} {title}>
<img src={node.icon} />
<img src={node.icon} alt="Website favicon" />
</Entry>
2 changes: 1 addition & 1 deletion src/content/shared/xul/PlacesModel.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import mitt from 'mitt'
import { type Readable, get, readable } from 'svelte/store'

Expand Down Expand Up @@ -56,6 +55,7 @@ function getQuerySortingOptions(groupType: HistoryGroupType): {
break
case HistoryGroupType.GroupByDate:
resultType = NHQO.RESULTS_AS_DATE_QUERY
sortingMode = NHQO.SORT_BY_DATE_DESCENDING
break
case HistoryGroupType.GroupBySite:
resultType = NHQO.RESULTS_AS_SITE_QUERY
Expand Down

0 comments on commit 9edd1d9

Please sign in to comment.