Skip to content

Commit

Permalink
feat: max height 250px
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Nov 7, 2024
1 parent 00c5b9c commit cbb90fd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions src/inverse-link-and-folder/components/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

display: flex;
flex-wrap: wrap;
max-height: 250px;
overflow-y: auto;
}

.inverse-link-and-folder-card-title {
Expand All @@ -18,6 +20,11 @@
justify-content: space-between;
}

.inverse-link-and-folder-card-close {
background: unset;
border: none;
}

.inverse-link-and-folder-card-sub-title {
font-size: 1em;
width: 100%;
Expand Down
10 changes: 5 additions & 5 deletions src/inverse-link-and-folder/components/list.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.horizontal-list-links {
.inverse-link-and-folder-list {
display: flex;
flex-direction: row;
flex-wrap: wrap;
Expand All @@ -7,16 +7,16 @@
padding: 0;
list-style-type: none;
}
.horizontal-list-links {
.inverse-link-and-folder-list {
overscroll-behavior: contain;
overflow-y: -moz-scrollbars-none;
}
.horizontal-list-links::-webkit-scrollbar {
.inverse-link-and-folder-list::-webkit-scrollbar {
width: 0 !important
}

.horizontal-list-links li a,
.horizontal-list-links li a:hover {
.inverse-link-and-folder-list li a,
.inverse-link-and-folder-list li a:hover {
line-height: unset;
background-color: unset;
border: none;
Expand Down
6 changes: 3 additions & 3 deletions src/inverse-link-and-folder/info-area.tid
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ title: $:/plugins/linonetwo/inverse-link-and-folder/info-area
<ul class="inverse-link-and-folder-card">
<li class="inverse-link-and-folder-card-title">
<strong><<lingo "RelatedReferences">></strong>
<$button>{{$:/core/images/close-button}}<$action-createtiddler $basetitle={{{ [[$:/state/inverse-link-and-folder/show-manually/]addsuffix<currentTiddler>] }}} $overwrite="yes" text="no"/></$button>
<$button class="inverse-link-and-folder-card-close">{{$:/core/images/close-button}}<$action-createtiddler $basetitle={{{ [[$:/state/inverse-link-and-folder/show-manually/]addsuffix<currentTiddler>] }}} $overwrite="yes" text="no"/></$button>
</li>
<<inverse-link-and-folder-card "[all[current]backlinks[]!is[system]] -[subfilter<excludeFilter>]" "LinkIn">>

Expand All @@ -19,10 +19,10 @@ title: $:/plugins/linonetwo/inverse-link-and-folder/info-area
<<inverse-link-and-folder-card "[all[current]backtranscludes[]] -[subfilter<excludeFilter>]" "BackTransclude">>
</ul>
<%else%>
<ul class="horizontal-list-links">
<ul class="inverse-link-and-folder-list">
<li class="inverse-link-and-folder-card-title">
<strong><<lingo "RelatedReferences">></strong>
<$button>{{$:/core/images/close-button}}<$action-createtiddler $basetitle={{{ [[$:/state/inverse-link-and-folder/show-manually/]addsuffix<currentTiddler>] }}} $overwrite="yes" text="no"/></$button>
<$button class="inverse-link-and-folder-card-close">{{$:/core/images/close-button}}<$action-createtiddler $basetitle={{{ [[$:/state/inverse-link-and-folder/show-manually/]addsuffix<currentTiddler>] }}} $overwrite="yes" text="no"/></$button>
</li>
<<inverse-link-and-folder-list "[all[current]backlinks[]!is[system]] -[subfilter<excludeFilter>]" "LinkIn">>

Expand Down

0 comments on commit cbb90fd

Please sign in to comment.