Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle show hide #3

Open
linonetwo opened this issue Feb 3, 2023 · 5 comments
Open

Toggle show hide #3

linonetwo opened this issue Feb 3, 2023 · 5 comments

Comments

@linonetwo
Copy link
Contributor

群里的@机杼说

不过我还是觉得用按钮控制显示会好一点。比如在编辑器里添加一个按钮,点击就会显示模板。然后用户再继续点击相应模板。这样就不会影响下面添加字段了。

可以用一个 state tiddler 控制显示,有这个 state 才显示

@linonetwo
Copy link
Contributor Author

他说类似这样,

就像这样。不过界面可以做大一点。

我觉得给每一个模板加上一个说明字段。然后这个说明字段不会作为模板内容。这样就可以显示说明字段的内容就好了。会更简洁。

@linonetwo
Copy link
Contributor Author

之后考虑加个 caption 或者 description

@dongrentianyu
Copy link

因为我用的是笔记本电脑,屏幕不是很大。所以就比较追求简洁。一行文字能说明的内容,就不用整个图案来显示。上面的方案也可以改进的。比如点击按钮就可以显示一个页面内容。这个页面内容是各种模板的集合。这样就避免了和下面编辑字段相冲突。

另外解决的一个问题是,运用模板的条目终究是少数,所以用按钮来控制要不要运用模板是更好的选择。

上述图片的方案其实也一般。因为如果模板非常多的话,也不好看。所以还是做一个条目,专门显示模板。然后这个条目样式也可以由用户diy,如果觉得默认的样式不好看,也可以自己修改。因为筛选器基本上是一样的。当然实现起来估计有难度。

@linonetwo
Copy link
Contributor Author

@oeyoews

352f3a919ca818c665deb2efc9bb8b71

直接修改tw的EditTemplate的body模板,应该能做成这样

87122275ef7e394fb0b74eaaf31a3885

类似这样的也比较方便, 直接修改body模板, 需要改动的可能比较多,

@linonetwo
Copy link
Contributor Author

何不秉烛:
@林一二 我一直在用的 不过感觉这个预览的大方块有点大 (模板多了 显示起来有点不美观) 不如改成一行一行的列表形式....

反正列表链接应该也可以鼠标悬浮预览,直接显示预览并不重要

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants