mirror of
https://github.com/ozntel/oz-calendar.git
synced 2026-07-22 07:40:24 +00:00
No Note Found Text for Empty Days
This commit is contained in:
parent
a91ea9c0c9
commit
55d82cfb20
2 changed files with 20 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import React from 'react';
|
||||
import { BsArrowRight, BsArrowLeft } from 'react-icons/bs';
|
||||
import { HiOutlineDocumentText } from 'react-icons/hi';
|
||||
import { RiPhoneFindLine } from 'react-icons/ri';
|
||||
import dayjs from 'dayjs';
|
||||
import OZCalendarPlugin from '../main';
|
||||
import { openFile } from '../utils';
|
||||
|
|
@ -56,6 +57,12 @@ export default function NoteListComponent(params: NoteListComponentParams) {
|
|||
</div>
|
||||
</div>
|
||||
<div className="oz-calendar-notelist-container">
|
||||
{selectedDayNotes.length === 0 && (
|
||||
<div className="oz-calendar-note-no-note">
|
||||
<RiPhoneFindLine className="oz-calendar-no-note-icon" />
|
||||
No note found
|
||||
</div>
|
||||
)}
|
||||
{selectedDayNotes.map((notePath) => {
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
13
styles.css
13
styles.css
|
|
@ -146,3 +146,16 @@
|
|||
padding-bottom: 2px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.oz-calendar-note-no-note {
|
||||
font-size: var(--nav-item-size);
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.oz-calendar-no-note-icon {
|
||||
vertical-align: middle;
|
||||
padding-bottom: 2px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue