Skip to content

Commit

Permalink
fix: editing project name in navbar issue resolved CircuitVerse#289
Browse files Browse the repository at this point in the history
  • Loading branch information
itsHamdySalem committed Mar 22, 2024
1 parent 594cb5b commit a72ebb0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/Navbar/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@

<div id="bs-example-navbar-collapse-1" class="collapse navbar-collapse">
<NavbarLinks :navbar-data="navbarData" />

<span
id="projectName"
class="projectName noSelect defaultCursor font-weight-bold"
>
{{ projectStore.getProjectName }}
<span id="projectName" class="projectName noSelect defaultCursor font-weight-bold">
<div class="projectNameTextArea">
{{ projectStore.getProjectName }}
</div>
</span>
<User :user-data="userDropdownItems" />
</div>
Expand Down
1 change: 1 addition & 0 deletions src/simulator/src/listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default function startListeners() {
$('#projectName').on('click', () => {
simulationArea.lastSelected = globalScope.root
setTimeout(() => {
document.querySelector('#moduleProperty .maximize').click()
document.getElementById('projname').select()
}, 100)
})
Expand Down
5 changes: 5 additions & 0 deletions src/styles/css/main.stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ input[type='text']:focus {
text-overflow: ellipsis;
}

.projectNameTextArea:hover {
cursor: pointer;
text-decoration-line: underline;
}

@media (max-width: 991px) {
.projectName {
visibility: hidden;
Expand Down

0 comments on commit a72ebb0

Please sign in to comment.