File tree Expand file tree Collapse file tree 2 files changed +87
-2
lines changed
Expand file tree Collapse file tree 2 files changed +87
-2
lines changed Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ export function BacklinksList({ note }: { note: FNote }) {
393393 } ) ;
394394
395395 return backlinks . map ( backlink => (
396- < div >
396+ < li >
397397 < NoteLink
398398 notePath = { backlink . noteId }
399399 showNotePath showNoteIcon
@@ -407,7 +407,7 @@ export function BacklinksList({ note }: { note: FNote }) {
407407 < RawHtml html = { excerpt } />
408408 ) )
409409 ) }
410- </ div >
410+ </ li >
411411 ) ) ;
412412}
413413
Original file line number Diff line number Diff line change 155155 max-height : 90vh ;
156156 overflow : scroll;
157157 }
158+
159+ .backlinks-widget > .dropdown-menu {
160+ --menu-padding-size : .9em ;
161+
162+ max-height : 60vh ;
163+ overflow-y : scroll;
164+
165+ /* Backlink card */
166+ li {
167+ --border-radius : 8px ;
168+
169+ max-width : 600px ;
170+ padding : 10px 20px ;
171+ background : var (--card-background-color );
172+
173+ & + li {
174+ margin-top : 2px ;
175+ }
176+
177+ & : first-child {
178+ border-radius : var (--border-radius ) var (--border-radius ) 0 0 ;
179+ }
180+
181+ & : last-child {
182+ border-radius : 0 0 var (--border-radius ) var (--border-radius );
183+ }
184+
185+ /* Card header */
186+ & > span : first-child {
187+ display : block;
188+
189+ > span {
190+ display : flex;
191+ flex-wrap : wrap;
192+ align-items : center;
193+
194+ /* Note path */
195+ > small {
196+ flex : 100% ;
197+ order : -1 ;
198+ font-size : .65rem ;
199+
200+ .note-path {
201+ padding : 0 ;
202+ }
203+ }
204+
205+ /* Note icon */
206+ > .bx {
207+ color : var (--menu-item-icon-color );
208+ }
209+
210+ /* Note title */
211+ > a {
212+ margin-inline-start : 4px ;
213+ color : currentColor;
214+ font-weight : 500 ;
215+ }
216+ }
217+ }
218+
219+ /* Card content - excerpt */
220+ & > span : nth-child (2 ) > div {
221+ all : unset; /* TODO: Remove after disposing the old style from FloatingButtons.css */
222+ display : block;
223+
224+ margin : 8px 0 ;
225+ border-radius : 4px ;
226+ background : var (--quick-search-result-content-background );
227+ padding : 8px ;
228+ font-size : .75rem ;
229+
230+ a {
231+ background : transparent;
232+ color : var (--quick-search-result-highlight-color );
233+ text-decoration : underline;
234+ }
235+
236+ p {
237+ margin : 0 ;
238+ }
239+ }
240+
241+ }
242+ }
158243 }
159244
160245 > .attribute-list {
You can’t perform that action at this time.
0 commit comments