Improve recent apps display and style in TabHome

This commit is contained in:
jelveh
2025-12-06 20:57:05 -08:00
parent ba1855cff6
commit 1e7f815946
2 changed files with 9 additions and 0 deletions

View File

@@ -29,6 +29,14 @@ function buildRecentAppsHTML () {
if ( window.launch_apps?.recent?.length > 0 ) {
h += '<div class="bento-recent-apps-grid">';
// if name === title === uuid, then app title will be the hostname of index_url
// otherwise, use the title
for ( const app_info of window.launch_apps.recent ) {
if ( app_info.name === app_info.title === app_info.uuid && app_info.index_url ) {
app_info.title = new URL(app_info.index_url).hostname;
}
}
// Show up to 6 recent apps
const recentApps = window.launch_apps.recent.slice(0, 6);
for ( const app_info of recentApps ) {

View File

@@ -5917,6 +5917,7 @@ fieldset[name=number-code] {
transition: all 0.15s ease;
background: #f8f9fa;
border: 1px solid transparent;
width: 100px;
}
.bento-recent-app:hover {