Skip to content

Commit

Permalink
Made default and editing states the same height
Browse files Browse the repository at this point in the history
  • Loading branch information
djordjevlais committed Oct 20, 2022
1 parent b14b743 commit 0172fd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ghost/admin/app/components/posts/links-table.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
</div>
{{#each this.visibleLinks as |link|}}
<div class="gh-links-list-item">
<div class="gh-links-list-item {{if (eq this.editingLink link.link.link_id) "gh-links-list-item-edit-mode"}}">
{{#if (feature "fixNewsletterLinks")}}
<div class="gh-links-list-url">
{{#if (eq this.editingLink link.link.link_id)}}
Expand Down
5 changes: 5 additions & 0 deletions ghost/admin/app/styles/layouts/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,7 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho
.gh-links-list-item {
display: grid;
grid-template-columns: auto minmax(min-content,max-content);
align-items: center;
padding: 1.6rem 0;
border-bottom: 1px solid var(--whitegrey);
font-size: 1.4rem;
Expand Down Expand Up @@ -1032,6 +1033,10 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho
color: var(--midgrey-d2);
}

.gh-links-list-item-edit-mode {
padding: 1rem 0;
}

.gh-links-list-item-edit span {
padding: 0 10px;
height: 24px;
Expand Down

0 comments on commit 0172fd3

Please sign in to comment.