Merge pull request #8 from malkir/css-fix-tweak

Set library.css file size to what it was before edit
This commit is contained in:
Frank Tackitt 2022-09-23 13:21:42 -07:00 committed by GitHub
commit a5f216a770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@ msg2() {
DECK_STARTUP_FILE="/home/deck/.steam/steam/steamui/movies/deck_startup.webm" DECK_STARTUP_FILE="/home/deck/.steam/steam/steamui/movies/deck_startup.webm"
DECK_LIBRARY_CSS_FILE="/home/deck/.steam/steam/steamui/css/library.css" DECK_LIBRARY_CSS_FILE="/home/deck/.steam/steam/steamui/css/library.css"
DECK_LIBRARY_CSS_FILE_SIZE=$(stat -c%s $DECK_LIBRARY_CSS_FILE)
DECK_STARTUP_FILE_SIZE=1840847 DECK_STARTUP_FILE_SIZE=1840847
DECK_STARTUP_STOCK_MD5="4ee82f478313cf74010fc22501b40729" DECK_STARTUP_STOCK_MD5="4ee82f478313cf74010fc22501b40729"
@ -51,6 +52,7 @@ replace_css_video() {
OLD_CSS="video{flex-grow:0;width:300px;height:300px;z-index:10}" OLD_CSS="video{flex-grow:0;width:300px;height:300px;z-index:10}"
NEW_CSS="video{flex-grow:1;width:100%;height:100%;z-index:10} " NEW_CSS="video{flex-grow:1;width:100%;height:100%;z-index:10} "
sed -i.bak -e "s/$OLD_CSS/$NEW_CSS/" $DECK_LIBRARY_CSS_FILE sed -i.bak -e "s/$OLD_CSS/$NEW_CSS/" $DECK_LIBRARY_CSS_FILE
truncate --size=$DECK_LIBRARY_CSS_FILE_SIZE $DECK_LIBRARY_CSS_FILE
} }
check_backup check_backup