Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Amphiluke committed Nov 28, 2023
1 parent ff9d522 commit 038d7ce
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 20 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lindsvg-pwa",
"private": true,
"version": "2.0.0",
"version": "2.0.1",
"type": "module",
"scripts": {
"lint": "eslint \"src/**/*.{mjs,vue}\"",
Expand Down
16 changes: 8 additions & 8 deletions src/components/PanelAttributes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,6 @@ function plot() {
<h3>Add a new attribute</h3>
<div :class="$style.attributeItem">
<div :class="$style.newAttributeName">
<label :class="[interfaceStyles.labeledField, $style.labeledField]">
<input
v-model="newAttributeName"
autocapitalize="off"
type="text"
placeholder="Enter attribute name…"
>
</label>
<label :class="$style.attributeListCtrl">
<select
:class="$style.attributeList"
Expand All @@ -195,6 +187,14 @@ function plot() {
</optgroup>
</select>
</label>
<label :class="[interfaceStyles.labeledField, $style.labeledField]">
<input
v-model="newAttributeName"
autocapitalize="off"
type="text"
placeholder="Enter attribute name…"
>
</label>
<button
type="button"
:class="[$style.addAttributeButton, interfaceStyles.iconButton, interfaceStyles.iconButtonAdd]"
Expand Down
17 changes: 10 additions & 7 deletions src/components/PanelCollections.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,19 @@ function deleteLSystem(lid) {
}
.filterField {
appearance: textfield; /* fixes border-radius issue in Safari */
box-sizing: border-box;
flex-grow: 1;
min-width: 0;
padding-left: 0;
padding-right: 0;
}
.collections,
.collections {
list-style: none;
padding: 0 4px 0 0;
}
.collectionItems {
list-style: none;
padding: 0;
Expand Down Expand Up @@ -199,12 +204,10 @@ function deleteLSystem(lid) {
flex-shrink: 0;
}
@media (hover: hover) {
.collectionItems li:not(:hover, .active) {
.exploreButton:not(:focus),
.deleteLSystemButton:not(:focus) {
opacity: 0.01;
}
.collectionItems li:not(:hover, .active) {
.exploreButton:not(:focus),
.deleteLSystemButton:not(:focus) {
opacity: 0.01;
}
}
</style>
2 changes: 1 addition & 1 deletion src/stores/interface.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const POPOVER_DISMISS = "dismiss";

export let useInterfaceStore = defineStore("interface", () => {
/** Currently opened sidebar panel */
let openedPanel = ref("");
let openedPanel = ref("collections");

/**
* Toggle panel’s state
Expand Down
2 changes: 1 addition & 1 deletion src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

--size-sidebar-button: 28px;
--size-sidebar-panel: 290px;
--size-sidebar-panel: 300px;

text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
Expand Down

0 comments on commit 038d7ce

Please sign in to comment.