mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-29 02:10:59 -05:00
fix(channel): last update before master merge
This commit is contained in:
parent
cc531705b4
commit
086ab7b3bc
7 changed files with 139 additions and 88 deletions
2
external/lang
vendored
2
external/lang
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 1bf1a75b4dcc3b8543651c792ee0901b9db57e39
|
Subproject commit 33af4890e56757c27a5bbd23e81d05f03c4a0cde
|
|
@ -26,9 +26,6 @@ const ServerBanner = styled.div<Props>`
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
/*background-position: center;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-size: cover;*/
|
|
||||||
|
|
||||||
background-size: cover !important;
|
background-size: cover !important;
|
||||||
background-position: center center !important;
|
background-position: center center !important;
|
||||||
|
|
|
@ -49,7 +49,7 @@ export default observer(
|
||||||
}
|
}
|
||||||
}}>
|
}}>
|
||||||
<div>
|
<div>
|
||||||
New messages since{" "}
|
<Text id="app.main.channel.misc.new_messages" />{" "}
|
||||||
{dayjs(decodeTime(last_id)).fromNow()}
|
{dayjs(decodeTime(last_id)).fromNow()}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { Group } from "@styled-icons/boxicons-solid";
|
||||||
import { autorun } from "mobx";
|
import { autorun } from "mobx";
|
||||||
import { observer } from "mobx-react-lite";
|
import { observer } from "mobx-react-lite";
|
||||||
import { useHistory } from "react-router-dom";
|
import { useHistory } from "react-router-dom";
|
||||||
|
@ -47,7 +48,7 @@ const EmbedInviteBase = styled.div`
|
||||||
|
|
||||||
const EmbedInviteDetails = styled.div`
|
const EmbedInviteDetails = styled.div`
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
padding-left: 12px;
|
padding-inline-start: 12px;
|
||||||
${() =>
|
${() =>
|
||||||
isTouchscreenDevice &&
|
isTouchscreenDevice &&
|
||||||
css`
|
css`
|
||||||
|
@ -63,7 +64,14 @@ const EmbedInviteName = styled.div`
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const EmbedInviteMemberCount = styled.div`
|
const EmbedInviteMemberCount = styled.div`
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 2px;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
|
|
||||||
|
> svg {
|
||||||
|
color: var(--secondary-foreground);
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
@ -119,6 +127,7 @@ export function EmbedInvite({ code }: Props) {
|
||||||
<EmbedInviteDetails>
|
<EmbedInviteDetails>
|
||||||
<EmbedInviteName>{invite.server_name}</EmbedInviteName>
|
<EmbedInviteName>{invite.server_name}</EmbedInviteName>
|
||||||
<EmbedInviteMemberCount>
|
<EmbedInviteMemberCount>
|
||||||
|
<Group size={12} />
|
||||||
{invite.member_count.toLocaleString()}{" "}
|
{invite.member_count.toLocaleString()}{" "}
|
||||||
{invite.member_count === 1 ? "member" : "members"}
|
{invite.member_count === 1 ? "member" : "members"}
|
||||||
</EmbedInviteMemberCount>
|
</EmbedInviteMemberCount>
|
||||||
|
|
|
@ -8,6 +8,13 @@ export default styled.div`
|
||||||
user-select: none;
|
user-select: none;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
|
/*background: var(--background);*/
|
||||||
|
|
||||||
|
background-color: rgba(
|
||||||
|
var(--background-rgb),
|
||||||
|
max(var(--min-opacity), 0.75)
|
||||||
|
);
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
|
||||||
/*> * > ::-webkit-scrollbar-thumb {
|
/*> * > ::-webkit-scrollbar-thumb {
|
||||||
width: 4px;
|
width: 4px;
|
||||||
|
|
|
@ -24,12 +24,38 @@ import ChannelSettings from "./settings/ChannelSettings";
|
||||||
import ServerSettings from "./settings/ServerSettings";
|
import ServerSettings from "./settings/ServerSettings";
|
||||||
import Settings from "./settings/Settings";
|
import Settings from "./settings/Settings";
|
||||||
|
|
||||||
|
const AppContainer = styled.div`
|
||||||
|
background-size: cover !important;
|
||||||
|
background-position: center center !important;
|
||||||
|
`;
|
||||||
|
|
||||||
|
const StatusBar = styled.div`
|
||||||
|
height: 40px;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 13px;
|
||||||
|
gap: 14px;
|
||||||
|
|
||||||
|
.button {
|
||||||
|
border: 1px solid white;
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
const Routes = styled.div`
|
const Routes = styled.div`
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: var(--primary-background);
|
background: var(--primary-background);
|
||||||
|
/*background-color: rgba(
|
||||||
|
var(--primary-background-rgb),
|
||||||
|
max(var(--min-opacity), 0.75)
|
||||||
|
);*/
|
||||||
|
//backdrop-filter: blur(10px);
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
|
@ -44,6 +70,11 @@ export default function App() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
{/*<StatusBar>
|
||||||
|
<div className="title">Planned outage: CDN (~2 hours)</div>
|
||||||
|
<div className="button">View status</div>
|
||||||
|
</StatusBar>*/}
|
||||||
|
<AppContainer>
|
||||||
{window.isNative && !window.native.getConfig().frame && (
|
{window.isNative && !window.native.getConfig().frame && (
|
||||||
<Titlebar />
|
<Titlebar />
|
||||||
)}
|
)}
|
||||||
|
@ -111,9 +142,15 @@ export default function App() {
|
||||||
component={Channel}
|
component={Channel}
|
||||||
/>
|
/>
|
||||||
<Route path="/server/:server" component={Channel} />
|
<Route path="/server/:server" component={Channel} />
|
||||||
<Route path="/channel/:channel" component={Channel} />
|
<Route
|
||||||
|
path="/channel/:channel"
|
||||||
|
component={Channel}
|
||||||
|
/>
|
||||||
|
|
||||||
<Route path="/settings/:page" component={Settings} />
|
<Route
|
||||||
|
path="/settings/:page"
|
||||||
|
component={Settings}
|
||||||
|
/>
|
||||||
<Route path="/settings" component={Settings} />
|
<Route path="/settings" component={Settings} />
|
||||||
|
|
||||||
<Route path="/dev" component={Developer} />
|
<Route path="/dev" component={Developer} />
|
||||||
|
@ -129,6 +166,7 @@ export default function App() {
|
||||||
<Notifications />
|
<Notifications />
|
||||||
<StateMonitor />
|
<StateMonitor />
|
||||||
</OverlappingPanels>
|
</OverlappingPanels>
|
||||||
|
</AppContainer>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,8 +31,8 @@ export const Appearance = observer(() => {
|
||||||
<h3>
|
<h3>
|
||||||
<Text id="app.settings.pages.appearance.theme_options.title" />
|
<Text id="app.settings.pages.appearance.theme_options.title" />
|
||||||
</h3>
|
</h3>
|
||||||
<DisplaySeasonalShim />
|
|
||||||
<DisplayTransparencyShim />
|
<DisplayTransparencyShim />
|
||||||
|
<DisplaySeasonalShim />
|
||||||
<hr />
|
<hr />
|
||||||
<DisplayFontShim />
|
<DisplayFontShim />
|
||||||
<DisplayLigaturesShim />
|
<DisplayLigaturesShim />
|
||||||
|
|
Loading…
Reference in a new issue