Skip to content

Commit

Permalink
fix(style): minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
silvester-pari committed Nov 14, 2024
1 parent 4ae403b commit d4ad9d9
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 16 deletions.
65 changes: 53 additions & 12 deletions src/components/file/CreateFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,22 +188,25 @@ const getSelectedFileFolder = (name) => {
<template>
<div
v-if="props.open"
class="d-flex justify-center bg-blue-grey-lighten-4 border-b create-file"
class="d-flex justify-center border-b create-file"
>
<v-row class="my-0">
<v-col class="py-3 px-8 d-flex align-center">
<v-row>
<v-col cols="12" class="d-flex">
<div
class="px-6 py-6 border-b-thin session-create-field d-flex w-100 align-center justify-center"
>
<v-combobox
v-model="filePath"
@paste="onPastePathName"
@keydown="onKeyDownPathName"
variant="plain"
placeholder="Enter filename along with path"
label="File Name"
placeholder="my/new/file.txt"
:items="map(currPathDirStructure, 'name')"
hide-details
color="primary"
class="border-b-thin text-mono"
variant="outlined"
>
<template #prepend>
<template #prepend-inner>
<span
class="prepend text-mono font-weight-bold text-primary opacity-80"
>(root){{ updatedFilePath }}</span
Expand All @@ -230,15 +233,14 @@ const getSelectedFileFolder = (name) => {
</v-list-item>
</template>
</v-combobox>

<v-btn
@click="updateSchema"
icon="mdi-plus"
variant="flat"
color="primary"
size="small"
class="ml-3"
size="large"
></v-btn>
</div>
</v-col>
</v-row>
</div>
Expand Down Expand Up @@ -275,8 +277,47 @@ const getSelectedFileFolder = (name) => {
padding: 0px;
}
.create-file .v-combobox .v-field__input input::placeholder {
color: grey;
/* color: grey;
opacity: 0.5;
font-weight: 800;
font-weight: 800; */
font-family: monospace;
}
/* Same as SessionsView.vue */
/* TODO refactor */
.session-create-field {
border-bottom: 1px solid #647078;
}
.session-create-field .v-field {
border-radius: 6px 0px 0px 6px;
}
.session-create-field button {
border-radius: 0px 6px 6px 0px;
}
.session-create-field .v-label {
color: #6c757d;
}
.session-create-field .v-field__input {
padding-top: 10px;
padding-bottom: 10px;
color: #000000;
}
.session-create-field .v-field__append-inner .v-icon {
color: #6c757d;
cursor: pointer;
}
.session-create-field.v-text-field--outline {
background-color: white;
border-color: #d9d9d9;
box-shadow: none;
}
.session-create-field .v-field__outline {
border-color: transparent;
}
</style>
1 change: 1 addition & 0 deletions src/components/global/EmptyState.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const props = defineProps({
<v-btn
class="text-capitalize"
color="primary"
size="large"
:text="props.btnText"
:prepend-icon="props.icon"
@click="props.initFunc"
Expand Down
4 changes: 2 additions & 2 deletions src/views/SessionView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ const onPageChange = async (newPage) => {
v-else
headline="No changes found in this session"
img="/img/files.svg"
icon="mdi-plus"
btn-text="Add New File"
icon="mdi-pencil-plus"
btn-text="Add/Edit File"
description="No changes found in this session. You can start a new file to add updates."
:init-func="addNewFileClick"
/>
Expand Down
4 changes: 2 additions & 2 deletions src/views/SessionsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const onKeyEnterCreateNewSession = async (event) => {
onMounted(async () => {
navButtonConfig.value = {
text: "Create New Session",
text: "Start New Session",
icon: "mdi-source-pull",
click: createNewSessionClick,
};
Expand All @@ -111,7 +111,7 @@ const onPageChange = async (newPage) => {
<v-text-field
v-model="newSessionName"
label="Session Name"
placeholder="Enter a session name"
placeholder="Name your Session..."
hide-details
append-inner-icon="mdi-close"
@click:append-inner="clearInputCreateNewSession"
Expand Down

0 comments on commit d4ad9d9

Please sign in to comment.