Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

CSS classes to colour offline users differently #342

Merged
merged 4 commits into from
Jul 14, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jul 14, 2016

So we can use the same 66% opacity as idle tiles for offline-with-last-active-time to reduce the visual jarring

As per element-hq/element-web#1740

Requires element-hq/element-web#1798

So we can use the same 66% opacity as idle tiles for offline-with-last-active-time to reduce the visual jarring
@@ -29,6 +29,23 @@ var PRESENCE_CLASS = {
"unavailable": "mx_EntityTile_unavailable"
};


function presence_class_for_member(presence_state, last_active_ago) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, doesn't this completely contradict our code style?

https://github.com/matrix-org/matrix-react-sdk/blame/develop/code_style.md#L35

@ara4n ara4n assigned dbkr and unassigned ara4n Jul 14, 2016
@dbkr
Copy link
Member Author

dbkr commented Jul 14, 2016

oops, thanks. ptal.

@dbkr dbkr assigned ara4n and unassigned dbkr Jul 14, 2016
@@ -29,6 +29,23 @@ var PRESENCE_CLASS = {
"unavailable": "mx_EntityTile_unavailable"
};


function presenceClassForMember(presence_state, last_active_ago) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variables are still wrong case, but whatever. let's just try to avoid adding to the mess in future.....

@ara4n
Copy link
Member

ara4n commented Jul 14, 2016

lgtm enough

@ara4n ara4n assigned dbkr and unassigned ara4n Jul 14, 2016
@dbkr dbkr merged commit 2e776f5 into develop Jul 14, 2016
@richvdh richvdh deleted the dbkr/offline_user_colour branch February 15, 2017 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants