mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 10:22:30 +01:00
fix inconsistent header bar heights
This commit is contained in:
parent
662a49024b
commit
9ea7fd9e7f
@ -5,19 +5,13 @@ import { useParams } from "react-router-dom";
|
||||
import styled from "styled-components";
|
||||
import { ContextMenuContext } from "../contexts/ContextMenuContext";
|
||||
import { useAppStore } from "../stores/AppStore";
|
||||
import Container from "./Container";
|
||||
import { IContextMenuItem } from "./ContextMenuItem";
|
||||
import Icon from "./Icon";
|
||||
import { SectionHeader } from "./SectionHeader";
|
||||
import LeaveServerModal from "./modals/LeaveServerModal";
|
||||
|
||||
const Wrapper = styled(Container)`
|
||||
display: flex;
|
||||
padding: 12px 16px;
|
||||
margin-bottom: 1px;
|
||||
const Wrapper = styled(SectionHeader)`
|
||||
background-color: var(--background-secondary);
|
||||
box-shadow: 0 1px 0 hsl(0deg 0% 0% / 0.3);
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
|
11
src/components/SectionHeader.tsx
Normal file
11
src/components/SectionHeader.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
import styled from "styled-components";
|
||||
|
||||
export const SectionHeader = styled.div`
|
||||
display: flex;
|
||||
padding: 12px 16px;
|
||||
margin-bottom: 1px;
|
||||
box-shadow: 0 1px 0 hsl(0deg 0% 0% / 0.3);
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
white-space: nowrap;
|
||||
`;
|
@ -2,6 +2,7 @@ import * as Icons from "@mdi/js";
|
||||
import styled from "styled-components";
|
||||
import Channel from "../../stores/objects/Channel";
|
||||
import Icon from "../Icon";
|
||||
import { SectionHeader } from "../SectionHeader";
|
||||
import Tooltip from "../Tooltip";
|
||||
|
||||
const IconButton = styled.button`
|
||||
@ -27,13 +28,8 @@ const CustomIcon = styled(Icon)<CustomIconProps>`
|
||||
}
|
||||
`;
|
||||
|
||||
const Container = styled.section`
|
||||
display: flex;
|
||||
padding: 10px 16px;
|
||||
margin-bottom: 1px;
|
||||
const Container = styled(SectionHeader)`
|
||||
background-color: var(--background-primary-alt);
|
||||
box-shadow: 0 1px 0 hsl(0deg 0% 0% / 0.3);
|
||||
align-items: center;
|
||||
`;
|
||||
|
||||
const Wrapper = styled.div`
|
||||
|
Loading…
Reference in New Issue
Block a user