Skip to content

Commit

Permalink
Fix opacity of some text
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Dec 10, 2023
1 parent ec1e00d commit 40d23a1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default function InboxDrawerFriendItem(props: { friend?: Friend, user?: U
.username {
opacity: ${props => props.selected ? 1 : 0.6};
transition: 0.2s;
font-size: 16px;
}
&:hover .username {
Expand All @@ -101,7 +102,7 @@ export default function InboxDrawerFriendItem(props: { friend?: Friend, user?: U
<Avatar animate={hovered()} user={user()} size={25} />
</Link>
<div class={styles.details}>
<Text class="username">{user().username}</Text>
<div class="username">{user().username}</div>
<UserPresence userId={user().id} showOffline={false} animate={hovered()} />
</div>

Expand Down
3 changes: 2 additions & 1 deletion src/components/servers/drawer/ServerDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ const ChannelContainer = styled(ItemContainer)`
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 14px;
}
&:hover .label {
opacity: 1;
Expand Down Expand Up @@ -153,7 +154,7 @@ function CategoryItem(props: { channel: Channel, selected: boolean }) {
<Show when={isPrivateChannel()}>
<Icon name='lock' size={14} style={{ opacity: 0.3 }} />
</Show>
<Text class="label" size={14} opacity={0.6}>{props.channel.name}</Text>
<div class="label">{props.channel.name}</div>
</CategoryItemContainer>

<Show when={sortedServerChannels().length}>
Expand Down
3 changes: 2 additions & 1 deletion src/components/servers/settings/ServerSettingsDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const SettingItemContainer = styled(ItemContainer)<{nested?: boolean}>`
.label {
opacity: ${props => props.selected ? 1 : 0.6};
transition: 0.2s;
font-size: 16px;
}
&:hover .label {
Expand Down Expand Up @@ -100,7 +101,7 @@ function Item (props: {path: string,icon: string, label: string, selected?: bool
>
<SettingItemContainer nested={props.nested} selected={selected()}>
<Icon name={props.icon} size={18} />
<Text class="label">{props.label}</Text>
<div class="label">{props.label}</div>
</SettingItemContainer>
</Link>
)
Expand Down
3 changes: 2 additions & 1 deletion src/components/settings/SettingsDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const SettingItemContainer = styled(ItemContainer) <{ nested?: boolean }>`
.label {
opacity: ${props => props.selected ? 1 : 0.6};
font-size: 16px;
transition: 0.2s;
}
Expand Down Expand Up @@ -137,7 +138,7 @@ function Item(props: { path: string, icon: string, label: string, onClick?: () =
<Link href={href()} style={{ "text-decoration": "none" }}>
<SettingItemContainer selected={selected()}>
<Icon name={props.icon} size={18} />
<Text class="label">{props.label}</Text>
<div class="label">{props.label}</div>
{props.children}
</SettingItemContainer>
</Link>
Expand Down

0 comments on commit 40d23a1

Please sign in to comment.