mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
better behavior of note info widget in tight width
This commit is contained in:
parent
50431dd55a
commit
b8f2797abf
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.39.0-beta",
|
"version": "0.39.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
import StandardWidget from "./standard_widget.js";
|
import StandardWidget from "./standard_widget.js";
|
||||||
|
|
||||||
const TPL = `
|
const TPL = `
|
||||||
<table class="note-info-table">
|
<table class="note-info-table" style="table-layout: fixed; width: 100%;">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Note ID:</th>
|
<th nowrap>Note ID:</th>
|
||||||
<td colspan="3" class="note-info-note-id"></td>
|
<td nowrap colspan="3" class="note-info-note-id"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Created:</th>
|
<th nowrap>Created:</th>
|
||||||
<td colspan="3" class="note-info-date-created"></td>
|
<td nowrap colspan="3" style="overflow: hidden; text-overflow: ellipsis;" class="note-info-date-created"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Modified:</th>
|
<th nowrap>Modified:</th>
|
||||||
<td colspan="3" class="note-info-date-modified"></td>
|
<td nowrap colspan="3" style="overflow: hidden; text-overflow: ellipsis;" class="note-info-date-modified"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Type:</th>
|
<th>Type:</th>
|
||||||
@ -39,10 +39,19 @@ class NoteInfoWidget extends StandardWidget {
|
|||||||
const note = this.ctx.note;
|
const note = this.ctx.note;
|
||||||
|
|
||||||
$noteId.text(note.noteId);
|
$noteId.text(note.noteId);
|
||||||
$dateCreated.text(note.dateCreated);
|
$dateCreated
|
||||||
$dateModified.text(note.dateModified);
|
.text(note.dateCreated)
|
||||||
|
.attr("title", note.dateCreated);
|
||||||
|
|
||||||
|
$dateModified
|
||||||
|
.text(note.dateModified)
|
||||||
|
.attr("title", note.dateCreated);
|
||||||
|
|
||||||
$type.text(note.type);
|
$type.text(note.type);
|
||||||
$mime.text(note.mime).attr("title", note.mime);
|
|
||||||
|
$mime
|
||||||
|
.text(note.mime)
|
||||||
|
.attr("title", note.mime);
|
||||||
}
|
}
|
||||||
|
|
||||||
eventReceived(name, data) {
|
eventReceived(name, data) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user