Skip to content

Commit

Permalink
Merge pull request #34335 from nextcloud/backport/34321/stable25
Browse files Browse the repository at this point in the history
[stable25] Fix invisible status
  • Loading branch information
szaimen authored Sep 30, 2022
2 parents 4dea095 + 885b55b commit f2d7d13
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 12 deletions.
4 changes: 2 additions & 2 deletions apps/user_status/css/user-status-menu.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/user_status/css/user-status-menu.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apps/user_status/css/user-status-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
background-image: url('../img/user-status-dnd.svg');
}

// TODO: debug why icon-black-white does not work here
.icon-user-status-invisible {
@include icon-color('user-status-invisible', 'user_status', variables.$color-black, 1);
background-image: url('../img/user-status-invisible.svg');
filter: var(--background-invert-if-dark);
}
14 changes: 13 additions & 1 deletion apps/user_status/src/components/OnlineStatusSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
type="radio"
name="user-status-online"
@change="onChange">
<label :for="id" :class="icon" class="user-status-online-select__label">
<label :for="id" class="user-status-online-select__label">
{{ label }}
<span :class="icon" role="img" />
<em class="user-status-online-select__subline">{{ subline }}</em>
</label>
</div>
Expand Down Expand Up @@ -76,6 +77,7 @@ export default {
</script>

<style lang="scss" scoped>
@use 'sass:math';
$icon-size: 24px;
$label-padding: 8px;

Expand All @@ -91,6 +93,7 @@ $label-padding: 8px;
}

&__label {
position: relative;
display: block;
margin: $label-padding;
padding: $label-padding;
Expand All @@ -105,6 +108,15 @@ $label-padding: 8px;
& {
cursor: pointer;
}

span {
position: absolute;
top: calc(50% - math.div($icon-size, 2));
left: $label-padding;
display: block;
width: $icon-size;
height: $icon-size;
}
}

&__input:checked + &__label,
Expand Down
4 changes: 2 additions & 2 deletions dist/user-status-modal-8299.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/user-status-modal-8299.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/user_status-menu.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/user_status-menu.js.map

Large diffs are not rendered by default.

0 comments on commit f2d7d13

Please sign in to comment.