mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-08 12:15:39 +00:00
reduce modal max-width
This commit is contained in:
parent
97db706186
commit
cb51107ffd
@ -10,40 +10,9 @@
|
|||||||
for all your local music files 💿️.
|
for all your local music files 💿️.
|
||||||
</p>
|
</p>
|
||||||
<hr />
|
<hr />
|
||||||
<p>
|
<p class="t-center">Let there be music!</p>
|
||||||
To get started, you need to have
|
|
||||||
<a href="https://github.com/geoffrey45/alice-core" target="_blank"
|
|
||||||
><span class="inline-code">alice server </span></a
|
|
||||||
>
|
|
||||||
running on your computer, and accessible via
|
|
||||||
<a href="http://localhost:1970"
|
|
||||||
><span class="inline-code">localhost:1970</span></a
|
|
||||||
>.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
On top of that, you need to enable loading mixed content in your browser
|
|
||||||
to to load local images 🖼️. Firefox usually supports this by default, but
|
|
||||||
you may need to enable it in Chrome.
|
|
||||||
</p>
|
|
||||||
<hr />
|
<hr />
|
||||||
<br />
|
<br />
|
||||||
<div class="instructions rounded">
|
|
||||||
<div class="t-center">How to enable loading mixed content in</div>
|
|
||||||
<div class="button-group">
|
|
||||||
<a
|
|
||||||
href="https://support.mozilla.org/en-US/kb/mixed-content-blocking-firefox"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
<button>🦊 Firefox</button>
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
href="https://support.google.com/chrome/answer/95617?hl=en"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
<button>🦝 Chrome</button>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bottom-banner">
|
<div class="bottom-banner">
|
||||||
<div class="creator t-center">
|
<div class="creator t-center">
|
||||||
@ -64,14 +33,6 @@
|
|||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inline-code {
|
|
||||||
font-size: 0.9rem;
|
|
||||||
color: $red;
|
|
||||||
border-radius: $smaller;
|
|
||||||
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
|
|
||||||
"Consolas", "Liberation Mono";
|
|
||||||
}
|
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
border: none;
|
border: none;
|
||||||
border-bottom: 1px $gray3 solid;
|
border-bottom: 1px $gray3 solid;
|
||||||
@ -95,22 +56,7 @@
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
color: $red;
|
color: $red;
|
||||||
}
|
cursor: pointer !important;
|
||||||
}
|
|
||||||
|
|
||||||
.instructions {
|
|
||||||
background-color: $gray4;
|
|
||||||
padding: $small;
|
|
||||||
|
|
||||||
.button-group {
|
|
||||||
margin-top: 1rem;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-evenly;
|
|
||||||
gap: 1rem;
|
|
||||||
|
|
||||||
button {
|
|
||||||
padding: 0 $medium;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<div class="bg" @click="modal.hideModal"></div>
|
<div class="bg" @click="modal.hideModal"></div>
|
||||||
<div class="m-content rounded">
|
<div class="m-content rounded">
|
||||||
<div class="heading">{{ modal.title }}</div>
|
<div class="heading">{{ modal.title }}</div>
|
||||||
<div class="cancel image" @click="modal.hideModal"></div>
|
<div class="close image" @click="modal.hideModal"></div>
|
||||||
<NewPlaylist
|
<NewPlaylist
|
||||||
v-if="modal.component == modal.options.newPlaylist"
|
v-if="modal.component == modal.options.newPlaylist"
|
||||||
:track="modal.props.track"
|
:track="modal.props.track"
|
||||||
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import useModalStore from "../stores/modal";
|
import useModalStore from "../stores/modal";
|
||||||
|
|
||||||
import NewPlaylist from "./modals/NewPlaylist.vue";
|
import NewPlaylist from "./modals/NewPlaylist.vue";
|
||||||
import UpdatePlaylist from "./modals/updatePlaylist.vue";
|
import UpdatePlaylist from "./modals/updatePlaylist.vue";
|
||||||
import WelcomeModal from "./WelcomeModal.vue";
|
import WelcomeModal from "./WelcomeModal.vue";
|
||||||
@ -53,6 +54,7 @@ function hideModal() {
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
|
// padding: 1rem;
|
||||||
|
|
||||||
.bg {
|
.bg {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -65,12 +67,12 @@ function hideModal() {
|
|||||||
|
|
||||||
.m-content {
|
.m-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 35rem;
|
max-width: 30rem;
|
||||||
padding: 1rem;
|
padding: 2rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: $gray;
|
background-color: $black;
|
||||||
|
|
||||||
.cancel {
|
.close {
|
||||||
width: 2rem;
|
width: 2rem;
|
||||||
height: 2rem;
|
height: 2rem;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
name="name"
|
name="name"
|
||||||
id="modal-playlist-name-input"
|
id="modal-playlist-name-input"
|
||||||
/>
|
/>
|
||||||
<br />
|
<br /><br>
|
||||||
<button type="submit">Create</button>
|
<button type="submit" class="circular btn-active">Create</button>
|
||||||
</form>
|
</form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -95,6 +95,11 @@ function create(e: Event) {
|
|||||||
button {
|
button {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 6rem;
|
width: 6rem;
|
||||||
|
transition: all .25s ease-out;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
width: 10rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<button>
|
<button class="circular btn-active">
|
||||||
{{ clicked ? "Updating" : "Update" }}
|
{{ clicked ? "Updating" : "Update" }}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
@ -21,7 +21,7 @@ export default function (queue: typeof useQStore) {
|
|||||||
let ctrlKey = e.ctrlKey;
|
let ctrlKey = e.ctrlKey;
|
||||||
|
|
||||||
function FocusedOnInput(target: HTMLElement) {
|
function FocusedOnInput(target: HTMLElement) {
|
||||||
return target.tagName === "INPUT" || target.tagName === "TEXTAREA";
|
return target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.tagName === "BUTTON";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FocusedOnInput(target)) return;
|
if (FocusedOnInput(target)) return;
|
||||||
|
@ -21,7 +21,7 @@ const useNotifStore = defineStore("notification", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
class Notification {
|
class Notification {
|
||||||
constructor(text: string, type?: NotifType) {
|
constructor(text: string, type: NotifType = NotifType.Info) {
|
||||||
useNotifStore().showNotification(text, type);
|
useNotifStore().showNotification(text, type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user