Giter Site home page Giter Site logo

Date separators about photos HOT 6 CLOSED

nextcloud avatar nextcloud commented on May 15, 2024
Date separators

from photos.

Comments (6)

Mikescops avatar Mikescops commented on May 15, 2024 1

Yes sure, i was considering this as well!

from photos.

jancborchardt avatar jancborchardt commented on May 15, 2024

Simple way to start would be month dividers:

  • January 2020
  • December 2019
  • November 2019
  • etc.

The month dividers are headings, and the year can be shown with grey maxcontrast color to not take so much visibility.

The dividers should be sticky when scrolled down. The container should not have any background color so it simply overlays the images.

from photos.

Mikescops avatar Mikescops commented on May 15, 2024

I tried to implement this but failed because it needs a totally different data structure from what we have now.
@skjnldsv if you have hints on how to acheive this, would be nice

from photos.

jancborchardt avatar jancborchardt commented on May 15, 2024

@Mikescops for reference, can you explain what the current data structure is, and what we would ideally need?

from photos.

Mikescops avatar Mikescops commented on May 15, 2024

For now we store what we get from the DAV in a simple array [ ].
It's nice when you have a single sorted list but not when you need to group the entries in it.

For instance i tried this structure:

{
     "2019-12" : [ img1, img2 ],
     "2020-01" : [ img3]
}

It could work well (i tried it), but we need to change lot of stuff, including the way we load more files when reaching the bottom.

from photos.

skjnldsv avatar skjnldsv commented on May 15, 2024

@Mikescops there is absolutely no rush for it now.
We're also in feature freeze for 18, so thi sis scheduled for the next release anyway :)

We'll talk in person about how to properly implement this if you will

from photos.

Related Issues (20)

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.