Skip to content

Commit

Permalink
Rename CSS classes (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnguonly authored Apr 14, 2024
1 parent c27a0a7 commit 038f501
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 20 deletions.
10 changes: 5 additions & 5 deletions src/components/ChatBar.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
.chat-container {
.lumos-chat-container {
height: 200px;
}

.chat-bar {
.lumos-chat-bar {
display: flex;
justify-content: space-between;
width: 100%;
}

.input-field {
.lumos-input-field {
flex: 1;
}

.submit-button {
.lumos-submit-button {
flex: 1;
width: 40px;
height: 40px;
}

.clear-button {
.lumos-clear-button {
flex: 1;
width: 40px;
height: 40px;
Expand Down
13 changes: 8 additions & 5 deletions src/components/ChatBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,10 @@ const ChatBar: React.FC = () => {
<Drawer open={openChatHistory} onClose={() => setOpenChatHistory(false)}>
<ChatHistory loadChat={loadChat} />
</Drawer>
<Box className="chat-container" sx={{ height: chatContainerHeight }}>
<Box
className="lumos-chat-container"
sx={{ height: chatContainerHeight }}
>
<Snackbar
anchorOrigin={{ vertical: "top", horizontal: "center" }}
open={showSnackbar}
Expand Down Expand Up @@ -734,9 +737,9 @@ const ChatBar: React.FC = () => {
</Button>
</ButtonGroup>
</Box>
<Box className="chat-bar">
<Box className="lumos-chat-bar">
<TextField
className="input-field"
className="lumos-input-field"
multiline
maxRows={5}
placeholder={promptPlaceholderText}
Expand Down Expand Up @@ -775,7 +778,7 @@ const ChatBar: React.FC = () => {
}}
/>
<IconButton
className="submit-button"
className="lumos-submit-button"
disabled={submitDisabled || prompt === ""}
onClick={handleSendButtonClick}
style={imageStyle}
Expand All @@ -784,7 +787,7 @@ const ChatBar: React.FC = () => {
</IconButton>
<Tooltip title="Clear messages (cmd + k)">
<IconButton
className="clear-button"
className="lumos-clear-button"
disabled={submitDisabled}
onClick={handleClearButtonClick}
style={imageStyle}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Options.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.options-popup {
.lumos-options-popup {
width: 100%;
height: 450px;
box-sizing: border-box;
padding: 10px;
overflow-x: hidden;
}

.options-input {
.lumos-options-input {
width: 100%;
}
12 changes: 6 additions & 6 deletions src/pages/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ const Options: React.FC = () => {

return (
<ThemeProvider theme={theme}>
<Box className="options-popup">
<FormControl className="options-input" size="small">
<Box className="lumos-options-popup">
<FormControl className="lumos-options-input" size="small">
<InputLabel id="ollama-model-select-label">Ollama Model</InputLabel>
<Select
sx={{ "margin-bottom": "15px" }}
Expand All @@ -313,7 +313,7 @@ const Options: React.FC = () => {
})}
</Select>
</FormControl>
<FormControl className="options-input" size="small">
<FormControl className="lumos-options-input" size="small">
<InputLabel id="ollama-embedding-select-label">
Ollama Embedding Model
</InputLabel>
Expand All @@ -339,7 +339,7 @@ const Options: React.FC = () => {
</Select>
</FormControl>
<TextField
className="options-input"
className="lumos-options-input"
sx={{ "margin-bottom": "15px" }}
label="Ollama Host"
value={host}
Expand All @@ -348,7 +348,7 @@ const Options: React.FC = () => {
onChange={handleHostChange}
/>
<TextField
className="options-input"
className="lumos-options-input"
sx={{ "margin-bottom": "15px" }}
type="number"
label="Vector Store TTL (minutes)"
Expand All @@ -357,7 +357,7 @@ const Options: React.FC = () => {
onChange={handleVectorStoreTTLMinsChange}
/>
<TextField
className="options-input"
className="lumos-options-input"
sx={{ "margin-bottom": "15px" }}
label="Content Parser Config"
multiline
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Popup.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.popup {
.lumos-popup {
width: 550px;
padding: 10px;
}
2 changes: 1 addition & 1 deletion src/pages/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "./Popup.css";

const Popup: React.FC = () => {
return (
<div className="popup">
<div className="lumos-popup">
<ChatBar />
</div>
);
Expand Down

0 comments on commit 038f501

Please sign in to comment.