mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-22 14:35:39 +01:00
Make selectable packages more intuitive
This commit is contained in:
parent
5e48f191b4
commit
9d51508e6b
@ -22,7 +22,7 @@ pub fn download_text(url: &str) -> Result<String, String> {
|
||||
let mut client = build_client()?
|
||||
.get(url)
|
||||
.send()
|
||||
.map_err(|x| format!("Failed to GET resource: {:?}", v))?;
|
||||
.map_err(|x| format!("Failed to GET resource: {:?}", x))?;
|
||||
|
||||
client
|
||||
.text()
|
||||
@ -37,7 +37,7 @@ where
|
||||
let mut client = build_client()?
|
||||
.get(url)
|
||||
.send()
|
||||
.map_err(|x| format!("Failed to GET resource: {:?}", v))?;
|
||||
.map_err(|x| format!("Failed to GET resource: {:?}", x))?;
|
||||
|
||||
let size = match client.headers().get(CONTENT_LENGTH) {
|
||||
Some(ref v) => v
|
||||
|
@ -37,3 +37,11 @@ pre {
|
||||
.has-padding {
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.clickable-box {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.clickable-box label {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ const SelectPackages = {
|
||||
<div class="tile is-ancestor">
|
||||
<div class="tile is-parent" v-for="package in $root.$data.config.packages" :index="package.name">
|
||||
<div class="tile is-child">
|
||||
<div class="box">
|
||||
<div class="box clickable-box" v-on:click.capture.stop="package.default = !package.default">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" v-model="package.default" />
|
||||
{{ package.name }}
|
||||
|
Loading…
Reference in New Issue
Block a user