Skip to content

Commit d7a1c01

Browse files
committed
Change color of displayname and ellipsis status message
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
1 parent 7c30b61 commit d7a1c01

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

apps/user_status/js/user-status-menu.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/user_status/js/user-status-menu.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/user_status/src/App.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
<Actions
3232
id="user-status-menu-item__subheader"
3333
:default-icon="statusIcon"
34-
:menu-title="visibleMessage">
34+
:menu-title="visibleMessage"
35+
:title="visibleMessage">
3536
<ActionButton
3637
v-for="status in statuses"
3738
:key="status.type"
@@ -244,15 +245,18 @@ export default {
244245
</script>
245246

246247
<style lang="scss">
248+
$max-width-user-status: 200px;
249+
247250
li:not(.inline) #user-status-menu-item {
248251
&__header {
249252
display: block;
250-
color: var(--color-main-text);
253+
box-sizing: border-box;
254+
color: var(--color-text-maxcontrast);
251255
padding: 10px 12px 5px 38px;
252256
opacity: 1;
253257
white-space: nowrap;
254258
text-align: left;
255-
max-width: 150px;
259+
max-width: $max-width-user-status;
256260
overflow: hidden;
257261
text-overflow: ellipsis;
258262
}
@@ -261,6 +265,8 @@ li:not(.inline) #user-status-menu-item {
261265
width: 100%;
262266
263267
> button {
268+
display: block;
269+
box-sizing: border-box;
264270
background-color: var(--color-main-background);
265271
background-position: 12px center;
266272
background-size: 16px;
@@ -269,6 +275,9 @@ li:not(.inline) #user-status-menu-item {
269275
font-weight: normal;
270276
padding-left: 38px;
271277
opacity: 1;
278+
max-width: $max-width-user-status;
279+
overflow: hidden;
280+
text-overflow: ellipsis;
272281
273282
&:hover,
274283
&:focus {

0 commit comments

Comments
 (0)