Skip to content

Commit 4e46549

Browse files
authored
Improve theming and add feature flag for connection status element (#164)
1 parent ebee2b4 commit 4e46549

File tree

8 files changed

+21
-8
lines changed

8 files changed

+21
-8
lines changed

src/GlobalStyle.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ import './theme/theme.css';
66
const globalCSS = css`
77
${normalize}
88
9-
body, html, #root {
9+
html {
10+
font-size: var(--html-document-font-size);
11+
}
12+
13+
body,
14+
html,
15+
#root {
1016
margin: 0;
1117
padding: 0;
1218
min-width: 100%;

src/components/AppBar/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const AppBar: React.FC = () => {
2424
)}
2525
<Breadcrumb />
2626
{!FEATURE_FLAGS.HIDE_QUICK_LINKS && <HelpMenu />}
27-
<ConnectionStatus />
27+
{!FEATURE_FLAGS.HIDE_CONNECTION_STATUS && <ConnectionStatus />}
2828
</ItemRow>
2929
<ItemRow pad="lg">
3030
<PluginGroup id="header" title="Extensions" slot="header" />

src/components/LogList/LogActionBar.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ const Buttons = styled.div`
137137
flex: 0;
138138
139139
button {
140-
width: 2.5rem;
141-
height: 2.5rem;
140+
width: var(--loglist-button-size);
141+
height: var(--loglist-button-size);
142+
padding: 0;
142143
margin-left: 0.5rem;
143144
144145
i {

src/components/TaskListingHeader/TaskListingHeader.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export function getMode(settings: TaskSettingsState): TaskListMode {
179179
//
180180

181181
const TaskListingContainer = styled.div`
182-
border-bottom: var(--border-medium-1);
182+
border-bottom: var(--task-list-header-border-bottom);
183183
font-size: var(--font-size-primary);
184184
position: relative;
185185
`;

src/components/Timeline/Footer/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const TimelineFooterContainer = styled.div`
3939

4040
const TimelineFooterLeft = styled.div`
4141
display: inline-block;
42-
width: 15.3125rem;
42+
width: var(--task-list-width);
4343
margin: 0.5rem 0;
4444
padding-right: 0.5rem;
4545
`;

src/components/Timeline/TaskListLabel.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ export default TaskListLabel;
121121
//
122122

123123
const RowLabel = styled.div<{ type: 'step' | 'task'; isOpen?: boolean; group?: boolean; status: string }>`
124-
flex: 0 0 15.3125rem;
125-
max-width: 15.3125rem;
124+
flex: 0 0 var(--task-list-width);
125+
max-width: var(--task-list-width);
126126
overflow: hidden;
127127
cursor: pointer;
128128
font-size: ${(p) =>

src/theme/theme.css

+5
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
--radius-secondary: 0.5rem; /* 8px */
129129

130130
/* Layout */
131+
--html-document-font-size: 16px;
132+
131133
--layout-color-bg: var(--color-bg-primary);
132134
--layout-max-width: 160rem; /* 2560px */
133135
--layout-application-bar-height: 7rem; /* 112px */
@@ -423,6 +425,7 @@
423425
--task-view-margin: none;
424426
--task-view-shadow: none;
425427

428+
--task-list-header-border-bottom: var(--border-medium-1);
426429
--task-list-padding: 0;
427430
--task-list-width: 15.25rem;
428431

@@ -433,4 +436,6 @@
433436
--task-content-shadow: none;
434437
--task-content-border-left: none;
435438
--task-content-border-right: none;
439+
440+
--loglist-button-size: 2.5rem;
436441
}

src/utils/FEATURE.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const FEATURE_FLAGS = {
1717
HIDE_STATUS_FILTERS: (process.env.REACT_APP_FEATURE_HIDE_STATUS_FILTERS || '0') === '1',
1818
HIDE_TABLE_HEADER: (process.env.REACT_APP_FEATURE_HIDE_TABLE_HEADER || '0') === '1',
1919
HIDE_QUICK_LINKS: (process.env.REACT_APP_FEATURE_HIDE_QUICK_LINKS || '0') === '1',
20+
HIDE_CONNECTION_STATUS: (process.env.REACT_APP_FEATURE_HIDE_CONNECTION_STATUS || '0') === '1',
2021

2122
CACHE_DISABLE: false,
2223
DB_LISTEN_DISABLE: false,

0 commit comments

Comments
 (0)