Browse Source

feat(ListPRs): reduce heading size

so that title doesnt look out of place
master
DanConwayDev 2 years ago
parent
commit
51c829134f
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. BIN
      __snapshots__/prs-list-list--default.png
  2. BIN
      __snapshots__/prs-list-list--empty.png
  3. BIN
      __snapshots__/prs-list-list--loading.png
  4. BIN
      __snapshots__/prs-list-list--partially-loaded.png
  5. 16
      __snapshots__/prs-list-list.test.js.snap
  6. 2
      src/lib/components/PRsList.svelte

BIN
__snapshots__/prs-list-list--default.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 28 KiB

BIN
__snapshots__/prs-list-list--empty.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
__snapshots__/prs-list-list--loading.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

BIN
__snapshots__/prs-list-list--partially-loaded.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

16
__snapshots__/prs-list-list.test.js.snap

@ -3,9 +3,9 @@
exports[`PRs/List/List Default test 1`] = ` exports[`PRs/List/List Default test 1`] = `
<div class> <div class>
<div class="prose"> <div class="prose">
<h3> <h4>
Open PRs Open PRs
</h3> </h4>
</div> </div>
<ul class="divide-y divide-neutral-600"> <ul class="divide-y divide-neutral-600">
<li class="flex p-2 pt-4 hover:bg-neutral-700 cursor-pointer"> <li class="flex p-2 pt-4 hover:bg-neutral-700 cursor-pointer">
@ -101,9 +101,9 @@ exports[`PRs/List/List Default test 1`] = `
exports[`PRs/List/List Empty test 1`] = ` exports[`PRs/List/List Empty test 1`] = `
<div class> <div class>
<div class="prose"> <div class="prose">
<h3> <h4>
Open PRs Open PRs
</h3> </h4>
</div> </div>
<p class="prose"> <p class="prose">
None None
@ -116,9 +116,9 @@ exports[`PRs/List/List Empty test 1`] = `
exports[`PRs/List/List Loading test 1`] = ` exports[`PRs/List/List Loading test 1`] = `
<div class> <div class>
<div class="prose"> <div class="prose">
<h3> <h4>
Open PRs Open PRs
</h3> </h4>
</div> </div>
<ul class="divide-y divide-neutral-600"> <ul class="divide-y divide-neutral-600">
<li class="flex p-2 pt-4 "> <li class="flex p-2 pt-4 ">
@ -219,9 +219,9 @@ exports[`PRs/List/List No Title test 1`] = `
exports[`PRs/List/List Partially Loaded test 1`] = ` exports[`PRs/List/List Partially Loaded test 1`] = `
<div class> <div class>
<div class="prose"> <div class="prose">
<h3> <h4>
Open PRs Open PRs
</h3> </h4>
</div> </div>
<ul class="divide-y divide-neutral-600"> <ul class="divide-y divide-neutral-600">
<li class="flex p-2 pt-4 hover:bg-neutral-700 cursor-pointer"> <li class="flex p-2 pt-4 hover:bg-neutral-700 cursor-pointer">

2
src/lib/components/PRsList.svelte

@ -14,7 +14,7 @@
<div class=""> <div class="">
{#if title.length > 0} {#if title.length > 0}
<div class="prose"> <div class="prose">
<h3>{title}</h3> <h4>{title}</h4>
</div> </div>
{/if} {/if}
{#if prs.length == 0 && !loading} {#if prs.length == 0 && !loading}

Loading…
Cancel
Save