Giter Club home page Giter Club logo

pttweb's People

Contributors

gslin avatar hanstzou avatar plsmaop avatar robertabcd avatar wens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pttweb's Issues

[Bug] Search Logic Error

When I was using the web search api with the following two requests, there something strange.
The results of the first request should include the one from the second result. (>=100 should fulfill >= 95)
However, the result doesn't fulfill this logic.

https://www.ptt.cc/bbs/Boy-Girl/search?q=recommend%3A95

爆
Re: [討論] 女生最討厭男網友問什麼?
FISHBONE0914
⋯
3/25
爆
Re: [討論] 女生最討厭男網友問什麼?
sumade
⋯
3/25
爆
[求助] 在一起沒多久就想分手
klyuch
⋯

https://www.ptt.cc/bbs/Boy-Girl/search?q=recommend%3A100

爆
Re: [討論] 這個影片是不是仇女???
yy10322
⋯
3/26
爆
Re: [討論] 所以你們有純友誼的女生朋友嗎?
beeeemo
⋯
3/26
爆
Re: [討論] 女生最討厭男網友問什麼?
FISHBONE0914
⋯
3/25
爆
Re: [討論] 女生最討厭男網友問什麼?
sumade
⋯

Overscroll issue inline / inline block styles need to be fine-tuned for mobile devices

Looks like we need to modify some style for mobile devices, to prevent the x-axis overscroll,
You can also check this issue by this script:

[...document.all].filter(el=>el.getClientBoundingRect().width > window.innerWidth); 
// It will return the expand elements array

According this thread #2 , I know the stylesheets are not in this repository, I'll comment some temp solution in this issue.

Issue 1:

If there are <iframe> element in article, it will make expand more than 100% width, cause iframe is a inline element, so we need to add box-sizing: border-box; or display: block; to prevent the unexpected expand.

iframe before
iframe after

Issue 2:

I figure out there is a similar issue on our board, it due to some inline-block are in the <a class"board"> tag, it also make the width expand over, I thought there are a short-code workaround is change the style of this tag from display: block to display: table.
original block
using table

Issue 3:

Also an expand issue in <span> tag which for ascii color in title / article / signature, it'll allow the children expand to more than screen width, but I do not think it could solve without breaking change...

span unexpected expand

If these are expected user experience, please tell me and close issue.

Ptt 網頁版文章在 Firefox 中不會自動折行

此篇文章為例,引述(藍綠色字的部分)使用 Firefox 打開會連成一行。

我發現 Ptt 網頁 CSS 中的 #‎main‬-content 用了 white-space: pre; 這在 Firefox 裡不會自動折行,應該改用 white-space: pre-wrap; 比較合理,而且 Google Chrome 跟 Firefox 都能正常顯示。

Add templates to version control

Seems that the TemplateDirectory set in JSON config is not stored with the files? Can we add them in? This would seem to prevent me from confirming a resolution for #8 in the recommended way (using the meta element of pages).

Thanks for any consideration you can give this :)

install problem

Is there any document for install pttweb?

I do the following:

export GOPATH="$HOME/go"
go get -u github.com/ptt/pttweb
......
but failed:

$ go get -u github.com/ptt/pttweb
go: finding github.com/ptt/pttweb latest
go: finding golang.org/x/tools latest
go: finding golang.org/x/net latest
go: finding github.com/rvelhote/go-recaptcha latest
go: finding golang.org/x/sys latest
go: finding google.golang.org/genproto latest
build github.com/ptt/pttweb: cannot load github.com/ptt/pttweb/proto/api: module github.com/ptt/pttweb@latest found (v0.0.0-20200321233133-7aff4bb7b273), but does not contain package github.com/ptt/pttweb/proto/api

I suspect it is a golang version issue. Is it true? If yes, could tell me the supported go version?
If no, could tell me the install environment requirements or the install steps?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.