mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
71b365c8d7
commit
7f15b1894a
@ -180,6 +180,8 @@
|
|||||||
&>.code {
|
&>.code {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
/* XXX this is not correct -- it expands the code to cover
|
||||||
|
the whole element incl. children... */
|
||||||
height: 100%;
|
height: 100%;
|
||||||
/*height: calc(2 * var(--item-padding) + 1em);*/
|
/*height: calc(2 * var(--item-padding) + 1em);*/
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -283,6 +285,10 @@
|
|||||||
&[collapsed]>.view:after {
|
&[collapsed]>.view:after {
|
||||||
content: "●";
|
content: "●";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&>.children {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* block hover... */
|
/* block hover... */
|
||||||
|
|||||||
@ -2411,6 +2411,11 @@ var Outline = {
|
|||||||
outline.addEventListener('mousedown',
|
outline.addEventListener('mousedown',
|
||||||
function(evt){
|
function(evt){
|
||||||
var elem = evt.target
|
var elem = evt.target
|
||||||
|
// prevent clicking through children to parent elements...
|
||||||
|
if(elem.classList.contains('children')){
|
||||||
|
evt.preventDefault()
|
||||||
|
outline.focus()
|
||||||
|
return }
|
||||||
// place the cursor where the user clicked in code/text...
|
// place the cursor where the user clicked in code/text...
|
||||||
if(elem.classList.contains('code')
|
if(elem.classList.contains('code')
|
||||||
&& document.activeElement !== elem){
|
&& document.activeElement !== elem){
|
||||||
|
|||||||
@ -117,13 +117,13 @@ var setup = function(){
|
|||||||
- side margins are a bit too large
|
- side margins are a bit too large
|
||||||
- still need to account for toolbar to the right
|
- still need to account for toolbar to the right
|
||||||
- left side does not need to be as wide
|
- left side does not need to be as wide
|
||||||
|
- BUG? `.code` is currently over-extended and covers the whole element area (incl. `.children`)
|
||||||
|
- this currently has no side-effects but is not pretty (???)
|
||||||
-
|
-
|
||||||
- ## ToDo:
|
- ## ToDo:
|
||||||
- add loading spinner -- `.loading` class set on `.load(..)` and unset when done...
|
- add loading spinner -- `.loading` class set on `.load(..)` and unset when done...
|
||||||
- DONE set/unset class
|
- DONE set/unset class
|
||||||
- add animation
|
- add animation
|
||||||
- clicking left of the block can select one of parent blocks -- bug or feature??
|
|
||||||
- _can we extend the left click zone all the way to the left edge???_
|
|
||||||
- `.json(..)`, `.data(..)`, ... should be signature compatible with `.get(..)` (???)
|
- `.json(..)`, `.data(..)`, ... should be signature compatible with `.get(..)` (???)
|
||||||
- _current state causes constant confusion..._
|
- _current state causes constant confusion..._
|
||||||
- Time to think about a standalone client -- at least to edit own notes as a test...
|
- Time to think about a standalone client -- at least to edit own notes as a test...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user