Skip to content

[Accessability] [Dark theme] Folder shared link size and modified columns text not visible #27371

Description

@antonol68

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

1.Go to Accessibility, enable dark theme
2.Share link from one folder
3.Open the shared link

Expected behaviour

The size and modified columns text should be white

Actual behaviour

The size and modified columns text are grey and black

Server configuration

Freebsd 12

Nginx 1.18.0

MariaDB 10.5.8

PHP 7.4.16

Nexcloud 21.0.2

Updated from an older Nextcloud

Where did you install Nextcloud from: Web

Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

List of activated apps:

App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)

LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:
Firefox 78.10.0 esr (64-bit)

Operating system:
Debian 10.9

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

Activity

  1. added
    0. Needs triage
    on Jun 3, 2021
  2. MichaIng commented on Jun 8, 2021

    @MichaIng
    Member

    Confirmed.

    The modification time is expected to be grey, same with file sizes < 20 MiB (on my instance, not sure if this is hardcoded). But file files > 20 MiB are shown white in the files app (right), but black on the share (left):

    share

    Interesting is that the color codes are the same (out of borders), but prefixed with a minus sign on the sharing page:

    • In files app: color: rgb(51539718,51539718,51539718);
    • On share: color: rgb(-51539718,-51539718,-51539718);

    That doesn't look like a coincidence to me. These are set as HTML document attributes, so not sure currently whether PHP or JavaScript is responsible here.

    The color for smaller files is not identical either, but 140, 140, 140 in the files app and 114, 114, 114 in the share. Not a big difference, but since the modification date is 140, 140, 140 is both cases, it looks better when it's aligned.

  3. szaimen commented on Jul 7, 2021

    @szaimen
    Contributor

    After a deeper investigation I found out that this check doesn't return true on public sites when you are not logged in

    var isDarkTheme = OCA.Accessibility && OCA.Accessibility.theme === 'dark'

    cc @nickvergessen for a fast fix on this one as I have no idea why it doesn#t work on public sites. Is maybe the Accessibility store or theme store not available?

    BTW: this is a follow up of #21366

  4. added
    1. to develop
    design
    and removed
    0. Needs triage
    on Jul 7, 2021
  5. szaimen commented on Jul 7, 2021

    @szaimen
    Contributor

    Is maybe the Accessibility store or theme store not available?

    seems like this is the case

  6. szaimen commented on Jul 7, 2021

    @szaimen
    Contributor

    Found a solution

  7. added
    2. developing
    and removed
    1. to develop
    on Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions