OctoDash icon indicating copy to clipboard operation
OctoDash copied to clipboard

Add scroll to file name

Open sa-egor opened this issue 4 years ago • 8 comments

Hello!

Please add scrolling text (<marquee> or other) for div job-info__filename. If filename long, not all text is displayed. For example: File name: CFFFP_Orange Pi PC and 3.5_ TFT display on 20x20mm profile lock.gcode

Lines for edit: https://github.com/UnchartedBull/OctoDash/blob/c6747fda4fa6365858e0185af6113e9303b14f99/src/app/job-status/job-status.component.html#L9 https://github.com/UnchartedBull/OctoDash/blob/c6747fda4fa6365858e0185af6113e9303b14f99/src/app/job-status/job-status.component.html#L20

Thanks!

sa-egor avatar May 07 '20 22:05 sa-egor

I think marquee isn't an official HTML tag and also looks a bit laggy. I'll have a look at this and see what I come up with. Definitely should be configurable, as I for example don't want my text to scroll.

UnchartedBull avatar May 11 '20 08:05 UnchartedBull

I wouldn't want my names to scroll either. I'd rather prefer a smaller font or/and two lines. In my opinion the filament grams below the name has more use on the file selection (if you start a print directly, you already can find that info in the slicer), so that space could be used for a second line of the filename.

noxhirsch avatar May 15 '20 17:05 noxhirsch

I use long file names as part of my workflow and file management. I definitely agree that it needs to either scroll or cross two lines (or have options for this). Thank you! :)

ruralaccent avatar May 22 '20 20:05 ruralaccent

I will work on this after the v2 release, so it might need a little more time.

UnchartedBull avatar May 22 '20 21:05 UnchartedBull

screenshot Just a little sneak peek on the custom style I'm working on at the moment. This is of course not the printing screen, but it will be similar. One of my main goals is also to see as much as possible from the filename everywhere.

noxhirsch avatar May 22 '20 21:05 noxhirsch

Update:

In the filelist filament and file size are now hidden (I think it is enough to find them in the file view), so more of the filename is visible (also the scrollbar is smaller): screenshot_filelist

Full screen file view with big thumbnail (square thumbnails will be more narrow, of course): screenshot_file

Many changes on the file loaded screen (also enough space for square thumbnails): screenshot_file_loaded

The same changes on the printing screen: screenshot

As soon as two HTML changes are implemented, everything is just CSS which can be used with the custom CSS file available in the next version of OctoDash.

noxhirsch avatar May 23 '20 17:05 noxhirsch

Looks cool!

sa-egor avatar May 23 '20 18:05 sa-egor

I merged one of the HTML changes, the other one will be merged soonish. Once you're done with your design feel free to create a PR. I'm thinking for now as a temporary solution:

There will be a directory at root level of this repo called themes, inside of which there will be folders with some nifty names for the different themes. Each theme folder should contain a couple of screenshots and the custom-css file for people to download. I think this will work great as an intermediate Theme Store.

themes
| -- nifty-name-1
| -- -- screenshots
| -- -- custom-styles.css
| -- nifty-name-2
...

UnchartedBull avatar May 23 '20 20:05 UnchartedBull