mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-24 14:31:44 +01:00
Switch to unplugin-icons for icons
The following icons are used: Material Design Light - Chevron Left (Hide Sidebar) - Chevron Right (Show Sidebar) - Chevron Double Down (Page Down) - Magnify (Search) - Cog (Settings) Octicon - Trash 24 (Clear Logs) - Download 24 (Download Logs) - Container 24 (Container Listing) CoreUI Free - Columns (Pin as Column)
This commit is contained in:
@@ -2,23 +2,19 @@
|
||||
<div class="toolbar mr-0 is-vcentered is-hidden-mobile">
|
||||
<div class="is-flex">
|
||||
<b-tooltip type="is-dark" label="Clear">
|
||||
<a @click="onClearClicked" class="button is-small is-light is-inverted" id="clear">
|
||||
<span class="icon">
|
||||
<icon name="bin"></icon>
|
||||
</span>
|
||||
<a @click="onClearClicked" class="button is-small is-light is-inverted pl-1 pr-1" id="clear">
|
||||
<clear-icon />
|
||||
</a>
|
||||
</b-tooltip>
|
||||
<div class="is-flex-grow-1"></div>
|
||||
<b-tooltip type="is-dark" label="Download">
|
||||
<a
|
||||
class="button is-small is-light is-inverted"
|
||||
class="button is-small is-light is-inverted pl-1 pr-1"
|
||||
id="download"
|
||||
:href="`${base}/api/logs/download?id=${container.id}`"
|
||||
download
|
||||
>
|
||||
<span class="icon">
|
||||
<icon name="save"></icon>
|
||||
</span>
|
||||
<download-icon />
|
||||
</a>
|
||||
</b-tooltip>
|
||||
</div>
|
||||
@@ -28,7 +24,8 @@
|
||||
<script>
|
||||
import config from "../store/config";
|
||||
import hotkeys from "hotkeys-js";
|
||||
import Icon from "./Icon";
|
||||
import DownloadIcon from "~icons/octicon/download-24";
|
||||
import ClearIcon from "~icons/octicon/trash-24";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
@@ -42,7 +39,8 @@ export default {
|
||||
},
|
||||
name: "LogActionsToolbar",
|
||||
components: {
|
||||
Icon,
|
||||
DownloadIcon,
|
||||
ClearIcon,
|
||||
},
|
||||
computed: {
|
||||
base() {
|
||||
@@ -87,6 +85,10 @@ export default {
|
||||
|
||||
.button {
|
||||
background-color: rgba(0, 0, 0, 0) !important;
|
||||
|
||||
&.is-small {
|
||||
font-size: 0.65rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user