siyuan-note / siyuan

A privacy-first, self-hosted, fully open source personal knowledge management software, written in typescript and golang.
https://b3log.org/siyuan
GNU Affero General Public License v3.0
23.24k stars 1.64k forks source link

Improve database table view URL field display #10712

Closed TCOTC closed 8 months ago

TCOTC commented 8 months ago

In what scenarios do you need this feature?

像这种情况,链接填进去了就很难编辑了,点击就会打开网页:

image

试了一下,发现链接列、资源列、邮箱列都有差不多的问题

Describe the optimal solution

  1. 像主键那样在后面放一个「更新」按钮
  2. 点击不会打开网页,而是在后面放一个「访问链接」按钮(下图是 FlowUs 的操作)

image

Describe the candidate solution

No response

Other information

No response

TCOTC commented 8 months ago

希望能跟 #10713 一起改进

88250 commented 8 months ago

不考虑了,这里的交互参考 Notion。

TCOTC commented 8 months ago

我觉得这里没必要跟Notion一样,Notion的这个地方做得也不方便

88250 commented 8 months ago

先这样,改成其他交互可能会有冲突。

TCOTC commented 8 months ago

那链接和邮箱前能不能多留一点空位,这样好点击一些:

image

Vanessa219 commented 8 months ago

可以在上下空白位置进行点击

TCOTC commented 8 months ago

不太好点击,不小心就会点到链接打开网页

Vanessa219 commented 8 months ago

上下的空间是比较多的,如果左侧调整了比上下空间大,整个表格空白会比较多显示的内容就会比较少。

TCOTC commented 8 months ago

那就再隐藏链接前面的 http(s)://(www) ,这样链接显示的内容就比原来还多。Notion是这样的:

image

TCOTC commented 8 months ago

Notion的链接前面留了一块地方:

image

TCOTC commented 8 months ago

以及要不再把数据库里链接的字号缩小一些?

Vanessa219 commented 8 months ago

字号已经缩小过了,左右空白我再加一点,然后移除协议。

TCOTC commented 8 months ago

@Vanessa219 我觉得鼠标浮在上面的时候可以显示完整链接,并且链接文本没超过表格宽度的时候也能显示

image