Skip to content

Commit 0d9bda5

Browse files
committed
Improve users icon
1 parent ce4e2a8 commit 0d9bda5

File tree

10 files changed

+32
-29
lines changed

10 files changed

+32
-29
lines changed

src/components/ContainerHeader.vue

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@
4242
:title="$t('person', {count: userCount})"
4343
@click="sidebarState.toggleNicklist()"
4444
>
45-
<svg-icon icon="fa-solid fa-users" />
45+
<users-icon />
4646
<span v-if="!$state.ui.is_narrow" class="kiwi-stack">
47-
<span class="kiwi-stack-hidden">{{
48-
new Array(userCount.toString().length < 4 ? 5 : userCount.toString().length + 1).join('8')
49-
}}</span>
47+
<span class="kiwi-stack-hidden">8888</span>
5048
<span class="kiwi-stack-content">{{ userCount }}</span>
5149
</span>
5250
</a>
@@ -174,13 +172,15 @@
174172
import GlobalApi from '@/libs/GlobalApi';
175173
import toHtml from '@/libs/renderers/Html';
176174
import parseMessage from '@/libs/MessageParser';
175+
import UsersIcon from '@/res/icons/users.svg';
177176
import BufferSettings from './BufferSettings';
178177
import ChannelInfo from './ChannelInfo';
179178
import ChannelBanlist from './ChannelBanlist';
180179
import AwayStatusIndicator from './AwayStatusIndicator';
181180
182181
export default {
183182
components: {
183+
UsersIcon,
184184
BufferSettings,
185185
ChannelInfo,
186186
ChannelBanlist,
@@ -415,29 +415,31 @@ export default {
415415
opacity: 1;
416416
}
417417
418+
@font-face {
419+
font-family: Roboto-Numbers;
420+
font-style: normal;
421+
font-weight: 400;
422+
src: url('@/res/fonts/Roboto-Numbers.woff2') format('woff2'),
423+
url('@/res/fonts/Roboto-Numbers.ttf') format('truetype');
424+
font-display: auto;
425+
}
426+
418427
.kiwi-header-option-nicklist {
419-
position: relative;
428+
font-size: 12px;
420429
421-
svg {
422-
height: 22px;
430+
a {
431+
gap: 2px;
423432
}
424-
}
425433
426-
.kiwi-header-option-nicklist .kiwi-stack {
427-
position: absolute;
428-
bottom: 4px;
429-
padding: 2px 3px 1px 3px;
430-
background-color: white;
431-
transition: background-color 0.3s;
432-
433-
> * {
434-
top: 1px;
434+
svg {
435+
height: auto;
436+
width: 22px;
435437
}
436-
}
437438
438-
.kiwi-header-option-nicklist.kiwi-header-option--active .kiwi-stack,
439-
.kiwi-header-option-nicklist.kiwi-header-option a:hover .kiwi-stack {
440-
background-color: var(--brand-primary);
439+
span {
440+
font-family: 'Roboto-Numbers', Arial, sans-serif;
441+
font-weight: 400;
442+
}
441443
}
442444
443445
/* The not joined button */

src/components/NetworkSettings.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,10 @@ export default {
494494
width: 100%;
495495
}
496496
497-
span {
497+
.u-input-text-c {
498498
position: absolute;
499-
right: 2px;
500-
top: 6px;
499+
right: 5px;
500+
top: 0;
501501
}
502502
}
503503

src/components/UserAvatar.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,8 @@ const toggleAway = () => {
206206
font-family: Roboto;
207207
font-style: normal;
208208
font-weight: 900;
209-
src: url('../res/fonts/Roboto-Black.woff2') format('woff2'),
210-
url('../res/fonts/Roboto-Black.woff') format('woff')
211-
url('../res/fonts/Roboto-Black.ttf') format('truetype');
209+
src: url('@/res/fonts/Roboto-Black.woff2') format('woff2'),
210+
url('@/res/fonts/Roboto-Black.ttf') format('truetype');
212211
font-display: auto;
213212
}
214213

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ import IrcInput from '@/components/utils/IrcInput';
4343
import TabbedView from '@/components/utils/TabbedView';
4444
import TransitionExpand from '@/components/utils/TransitionExpand';
4545

46+
import SvgSpinner from '@/res/icons/ring-resize.svg';
47+
4648
import AvailableLocales from '@/res/locales/available.json';
4749
import FallbackLocale from '@/../static/locales/dev.json';
4850

49-
import SvgSpinner from '@/res/icons/ring-resize.svg';
50-
5151
Object.assign(faConfig, {
5252
// Disable fontawesome's watching of the dom
5353
observeMutations: false,

src/res/fonts/Roboto-Black.woff

-91.8 KB
Binary file not shown.

src/res/fonts/Roboto-Black.woff2

-2.03 KB
Binary file not shown.

src/res/fonts/Roboto-Numbers.ttf

8.06 KB
Binary file not shown.

src/res/fonts/Roboto-Numbers.woff2

3.17 KB
Binary file not shown.

src/res/icons/ring-resize.svg

Lines changed: 1 addition & 0 deletions
Loading

src/res/icons/users.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)